Commit 93ce697c authored by Natanael Copa's avatar Natanael Copa

setup-disk: let user set ROOT_SIZE

allow user set rootfs size via ROOT_SIZE. For lvm it will be passed
directly to lvmcreate. For the sfdisk partitions it will be a number in
MiB.
parent 6bcb2c2b
......@@ -989,7 +989,7 @@ native_disk_install_lvm() {
setup_lvm_volume_group $vgname $@ || return 1
setup_lvm_swap $vgname
lvcreate --quiet -n ${root_dev##*/} -l 100%FREE $vgname
lvcreate --quiet -n ${root_dev##*/} -l ${ROOT_SIZE:-100%FREE} $vgname
rc-update add lvm boot
setup_root $root_dev $BOOT_DEV
}
......@@ -1002,7 +1002,7 @@ native_disk_install() {
local prep_size=8
local boot_size=${BOOT_SIZE:-100}
local swap_size=${SWAP_SIZE}
local root_size=
local root_size=${ROOT_SIZE}
local root_dev= boot_dev= swap_dev=
init_progs $(select_bootloader) || return 1
confirm_erase $@ || return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment