Now install Buster
This commit is contained in:
parent
80e909a9c7
commit
5d10e94a83
|
@ -9,12 +9,12 @@ else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
## Which version of Debian should be installed
|
## Which version of Debian should be installed
|
||||||
debian_version="stretch"
|
debian_version="buster"
|
||||||
## Computer hostname
|
## Computer hostname
|
||||||
## If empty, the script will try to get one with nslookup
|
## If empty, the script will try to get one with nslookup
|
||||||
new_hostname=""
|
new_hostname=""
|
||||||
## Volume Group name to use for LVM
|
## Volume Group name to use for LVM
|
||||||
vgname="ovhsys"
|
vgname="${new_hostname}vg"
|
||||||
## If the script should manage the partitions (delete, add,…)
|
## If the script should manage the partitions (delete, add,…)
|
||||||
manage_part=0
|
manage_part=0
|
||||||
## If the script should use BTRFS
|
## If the script should use BTRFS
|
||||||
|
@ -71,7 +71,7 @@ mkfs.ext3 -F -L boot -- "${hdd}"1
|
||||||
## Create Logical Volumes {{{
|
## Create Logical Volumes {{{
|
||||||
if [ "${manage_btrfs}" -eq 0 ]; then
|
if [ "${manage_btrfs}" -eq 0 ]; then
|
||||||
### Create only 1 LV for btrfs base system
|
### 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
|
else
|
||||||
### Otherwise create differents LVs
|
### Otherwise create differents LVs
|
||||||
[ ! -b /dev/mapper/"${vgname}"-home ] && lvcreate -n home -L 20g "${vgname}"
|
[ ! -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}"-vz ] && lvcreate -n vz -L 150g "${vgname}"
|
||||||
[ ! -b /dev/mapper/"${vgname}"-bkp ] && lvcreate -n bkp -L 150g "${vgname}"
|
[ ! -b /dev/mapper/"${vgname}"-bkp ] && lvcreate -n bkp -L 150g "${vgname}"
|
||||||
fi
|
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
|
### Format LVs in ext4
|
||||||
cd -- /dev/"${vgname}" || exit 1
|
cd -- /dev/"${vgname}" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue