diff --git a/debian/chroot.install b/debian/chroot.install index dbc7751..fa89c7c 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -9,12 +9,12 @@ else exit 0 fi ## Which version of Debian should be installed -debian_version="stretch" +debian_version="buster" ## Computer hostname ## If empty, the script will try to get one with nslookup new_hostname="" ## Volume Group name to use for LVM -vgname="ovhsys" +vgname="${new_hostname}vg" ## If the script should manage the partitions (delete, add,…) manage_part=0 ## If the script should use BTRFS @@ -71,7 +71,7 @@ mkfs.ext3 -F -L boot -- "${hdd}"1 ## Create Logical Volumes {{{ if [ "${manage_btrfs}" -eq 0 ]; then ### Create only 1 LV for btrfs base system - [ ! -b /dev/mapper/"${vgname}"-home ] && lvcreate -n root -L 100g "${vgname}" + [ ! -b /dev/mapper/"${vgname}"-root ] && lvcreate -n root -L 70g "${vgname}" else ### Otherwise create differents LVs [ ! -b /dev/mapper/"${vgname}"-home ] && lvcreate -n home -L 20g "${vgname}" @@ -87,7 +87,7 @@ if [ "${manage_extra_lv}" -eq 0 ]; then [ ! -b /dev/mapper/"${vgname}"-vz ] && lvcreate -n vz -L 150g "${vgname}" [ ! -b /dev/mapper/"${vgname}"-bkp ] && lvcreate -n bkp -L 150g "${vgname}" fi -[ ! -b /dev/mapper/"${vgname}"-swap ] && lvcreate -n swap -L 2g "${vgname}" +[ ! -b /dev/mapper/"${vgname}"-swap ] && lvcreate -n swap -L 4g "${vgname}" ### Format LVs in ext4 cd -- /dev/"${vgname}" || exit 1