Preseed: Set a specific vgname for gaming station
This commit is contained in:
parent
3e13b62fe1
commit
9486c02189
|
@ -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 sys
|
d-i partman-auto-lvm/new_vg_name string srog
|
||||||
|
|
||||||
### 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 { sys } \
|
in_vg { srog } \
|
||||||
$primary{ } \
|
$primary{ } \
|
||||||
method{ format } format{ } \
|
method{ format } format{ } \
|
||||||
use_filesystem{ } filesystem{ btrfs } \
|
use_filesystem{ } filesystem{ btrfs } \
|
||||||
|
@ -206,13 +206,13 @@ d-i partman-auto/expert_recipe string \
|
||||||
. \
|
. \
|
||||||
50% 2000 75% linux-swap \
|
50% 2000 75% linux-swap \
|
||||||
$lvmok{ } lv_name{ lv_swap } \
|
$lvmok{ } lv_name{ lv_swap } \
|
||||||
in_vg { sys } \
|
in_vg { srog } \
|
||||||
$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 { sys } \
|
in_vg { srog } \
|
||||||
$primary{ } \
|
$primary{ } \
|
||||||
method{ format } format{ } \
|
method{ format } format{ } \
|
||||||
use_filesystem{ } filesystem{ ext2 } \
|
use_filesystem{ } filesystem{ ext2 } \
|
||||||
|
@ -322,8 +322,8 @@ 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/sys/lv_free ; \
|
d-i preseed/late_command string in-target umount /dev/srog/lv_free ; \
|
||||||
lvremove -f /dev/sys/lv_free ; \
|
lvremove -f /dev/srog/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 ; \
|
||||||
|
|
Loading…
Reference in New Issue