From eaae3c32ab193a7b71c0ec297f92d8c1d569f884 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sat, 23 Nov 2019 12:16:29 +0100 Subject: [PATCH] Set specific vgname to avoid collision if reused --- debian/gaming.station.preseed | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/debian/gaming.station.preseed b/debian/gaming.station.preseed index 7658670..a7b9ad4 100644 --- a/debian/gaming.station.preseed +++ b/debian/gaming.station.preseed @@ -6,7 +6,7 @@ ## This preseed file will : # Use LVM partitioning. # 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,…). # Use the first device for system and boot. If you want to use another device, # you must change : @@ -19,11 +19,11 @@ ###################################################################### ## With a PXE boot: -#label StretchPreseed -# menu label Debian ^Stretch 64 bits WITH PRESEED -# kernel installer/debian/stretch/amd64/linux +#label BusterPreseed +# menu label Debian ^Buster 64 bits WITH PRESEED +# kernel installer/debian/buster/amd64/linux # 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 [[[ @@ -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/proxy string d-i mirror/http/mirror string ftp.fr.debian.org -d-i mirror/suite string stretch +d-i mirror/suite string buster ################################################################## ]]] ## Account [[[ @@ -176,7 +176,7 @@ d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true ## 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 d-i partman-auto-lvm/guided_size string max @@ -191,7 +191,7 @@ d-i partman-auto/expert_recipe string \ . \ 16000 100000 80000 btrfs \ $lvmok{ } lv_name{ lv_root } \ - in_vg { srog } \ + in_vg { srog10 } \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ btrfs } \ @@ -199,20 +199,20 @@ d-i partman-auto/expert_recipe string \ . \ 10000 50000 20000 ext4 \ $lvmok{ } lv_name{ lv_docker } \ - in_vg { srog } \ + in_vg { srog10 } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/lib/docker } \ . \ 50% 2000 75% linux-swap \ $lvmok{ } lv_name{ lv_swap } \ - in_vg { srog } \ + in_vg { srog10 } \ $primary{ } \ method{ swap } format{ } \ . \ 100 100 -1 ext2 \ $lvmok{ } lv_name{ lv_free } \ - in_vg { srog } \ + in_vg { srog10 } \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext2 } \ @@ -322,13 +322,13 @@ d-i cdrom-detect/eject boolean false ## 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 ; \ -d-i preseed/late_command string in-target umount /dev/srog/lv_free ; \ -lvremove -f /dev/srog/lv_free ; \ +d-i preseed/late_command string in-target umount /dev/srog10/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" ; \ 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/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 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 ################################################################## ]]]