Set specific vgname to avoid collision if reused
This commit is contained in:
parent
db263d9091
commit
eaae3c32ab
|
@ -6,7 +6,7 @@
|
||||||
## This preseed file will :
|
## This preseed file will :
|
||||||
# Use LVM partitioning.
|
# Use LVM partitioning.
|
||||||
# Format the root with BTRFS.
|
# Format the root with BTRFS.
|
||||||
# Install Debian Stretch/Stable.
|
# Install Debian Buster/Stable.
|
||||||
# Call for a last script (to order log files, create btrfs subvolumes,…).
|
# Call for a last script (to order log files, create btrfs subvolumes,…).
|
||||||
# Use the first device for system and boot. If you want to use another device,
|
# Use the first device for system and boot. If you want to use another device,
|
||||||
# you must change :
|
# you must change :
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
## With a PXE boot:
|
## With a PXE boot:
|
||||||
#label StretchPreseed
|
#label BusterPreseed
|
||||||
# menu label Debian ^Stretch 64 bits WITH PRESEED
|
# menu label Debian ^Buster 64 bits WITH PRESEED
|
||||||
# kernel installer/debian/stretch/amd64/linux
|
# kernel installer/debian/buster/amd64/linux
|
||||||
# IPAPPEND 2
|
# IPAPPEND 2
|
||||||
# APPEND vga=normal initrd=installer/debian/stretch/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://WWW.XXX.YYY.ZZZ/installer/debian/stretch/amd64/preseed.cfg
|
# APPEND vga=normal initrd=installer/debian/buster/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://WWW.XXX.YYY.ZZZ/installer/debian/buster/amd64/preseed.cfg
|
||||||
|
|
||||||
################################################################## ]]]
|
################################################################## ]]]
|
||||||
## Localization [[[
|
## Localization [[[
|
||||||
|
@ -100,7 +100,7 @@ d-i mirror/http/hostname string ftp.fr.debian.org
|
||||||
d-i mirror/http/directory string /debian/
|
d-i mirror/http/directory string /debian/
|
||||||
d-i mirror/http/proxy string
|
d-i mirror/http/proxy string
|
||||||
d-i mirror/http/mirror string ftp.fr.debian.org
|
d-i mirror/http/mirror string ftp.fr.debian.org
|
||||||
d-i mirror/suite string stretch
|
d-i mirror/suite string buster
|
||||||
|
|
||||||
################################################################## ]]]
|
################################################################## ]]]
|
||||||
## Account [[[
|
## Account [[[
|
||||||
|
@ -176,7 +176,7 @@ d-i partman-lvm/confirm boolean true
|
||||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||||
|
|
||||||
## Volume Group/vg
|
## Volume Group/vg
|
||||||
d-i partman-auto-lvm/new_vg_name string srog
|
d-i partman-auto-lvm/new_vg_name string srog10
|
||||||
|
|
||||||
### From stretch, need to specify the expected size
|
### From stretch, need to specify the expected size
|
||||||
d-i partman-auto-lvm/guided_size string max
|
d-i partman-auto-lvm/guided_size string max
|
||||||
|
@ -191,7 +191,7 @@ d-i partman-auto/expert_recipe string \
|
||||||
. \
|
. \
|
||||||
16000 100000 80000 btrfs \
|
16000 100000 80000 btrfs \
|
||||||
$lvmok{ } lv_name{ lv_root } \
|
$lvmok{ } lv_name{ lv_root } \
|
||||||
in_vg { srog } \
|
in_vg { srog10 } \
|
||||||
$primary{ } \
|
$primary{ } \
|
||||||
method{ format } format{ } \
|
method{ format } format{ } \
|
||||||
use_filesystem{ } filesystem{ btrfs } \
|
use_filesystem{ } filesystem{ btrfs } \
|
||||||
|
@ -199,20 +199,20 @@ d-i partman-auto/expert_recipe string \
|
||||||
. \
|
. \
|
||||||
10000 50000 20000 ext4 \
|
10000 50000 20000 ext4 \
|
||||||
$lvmok{ } lv_name{ lv_docker } \
|
$lvmok{ } lv_name{ lv_docker } \
|
||||||
in_vg { srog } \
|
in_vg { srog10 } \
|
||||||
method{ format } format{ } \
|
method{ format } format{ } \
|
||||||
use_filesystem{ } filesystem{ ext4 } \
|
use_filesystem{ } filesystem{ ext4 } \
|
||||||
mountpoint{ /var/lib/docker } \
|
mountpoint{ /var/lib/docker } \
|
||||||
. \
|
. \
|
||||||
50% 2000 75% linux-swap \
|
50% 2000 75% linux-swap \
|
||||||
$lvmok{ } lv_name{ lv_swap } \
|
$lvmok{ } lv_name{ lv_swap } \
|
||||||
in_vg { srog } \
|
in_vg { srog10 } \
|
||||||
$primary{ } \
|
$primary{ } \
|
||||||
method{ swap } format{ } \
|
method{ swap } format{ } \
|
||||||
. \
|
. \
|
||||||
100 100 -1 ext2 \
|
100 100 -1 ext2 \
|
||||||
$lvmok{ } lv_name{ lv_free } \
|
$lvmok{ } lv_name{ lv_free } \
|
||||||
in_vg { srog } \
|
in_vg { srog10 } \
|
||||||
$primary{ } \
|
$primary{ } \
|
||||||
method{ format } format{ } \
|
method{ format } format{ } \
|
||||||
use_filesystem{ } filesystem{ ext2 } \
|
use_filesystem{ } filesystem{ ext2 } \
|
||||||
|
@ -322,13 +322,13 @@ d-i cdrom-detect/eject boolean false
|
||||||
|
|
||||||
## Execute some last commands
|
## Execute some last commands
|
||||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
|
||||||
d-i preseed/late_command string in-target umount /dev/srog/lv_free ; \
|
d-i preseed/late_command string in-target umount /dev/srog10/lv_free ; \
|
||||||
lvremove -f /dev/srog/lv_free ; \
|
lvremove -f /dev/srog10/lv_free ; \
|
||||||
wget -O /tmp/part.btrfs.sh "https://git.101010.fr/gardouille-dotfiles/scripts/raw/master/debian/part.btrfs.sh" ; \
|
wget -O /tmp/part.btrfs.sh "https://git.101010.fr/gardouille-dotfiles/scripts/raw/master/debian/part.btrfs.sh" ; \
|
||||||
chmod +x /tmp/part.btrfs.sh && /tmp/part.btrfs.sh ; \
|
chmod +x /tmp/part.btrfs.sh && /tmp/part.btrfs.sh ; \
|
||||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||||
in-target wget -O /tmp/latecommand.tar.gz "https://git.ipr.univ-rennes1.fr/cellinfo/tftpboot/raw/master/scripts/latecommand.tar.gz" --no-check-certificate ; \
|
in-target wget -O /tmp/latecommand.tar.gz "https://git.ipr.univ-rennes1.fr/cellinfo/tftpboot/raw/master/scripts/latecommand.tar.gz" --no-check-certificate ; \
|
||||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||||
in-target /bin/sh /tmp/latecommand/post.stretch.sh
|
in-target /bin/sh /tmp/latecommand/post.buster.sh
|
||||||
################################################################## ]]]
|
################################################################## ]]]
|
||||||
|
|
Loading…
Reference in New Issue