diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-12 16:47:02 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-12 16:47:02 +0200 |
commit | 25702cd8d3d5c236f4a7b430eb5eae1f05985913 (patch) | |
tree | 6f4be098b41d1e601006f170f25729f70063f48f | |
parent | a91180af23f4a6287607beb82464c8b82e49c7bc (diff) | |
download | alpine-conf-25702cd8d3d5c236f4a7b430eb5eae1f05985913.zip |
setup-disk: allow set LVM partition size with LVM_SIZE
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501
-rw-r--r-- | setup-disk.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-disk.in b/setup-disk.in index 54f078f..0f00de9 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -1057,7 +1057,7 @@ data_only_disk_install_lvm() { local vgname=vg0 local var_dev=/dev/$vgname/lv_var local lvm_part_type=$(partition_id lvm) - local size= + local size=$LVM_SIZE unset BOOTLOADER init_progs || return 1 @@ -1161,7 +1161,7 @@ native_disk_install_lvm() { local lvm_part_type=$(partition_id lvm) local boot_part_type=$(partition_id linux) local boot_size=${BOOT_SIZE:-100} - local lvm_size= + local lvm_size=$LVM_SIZE local root_dev=/dev/$vgname/lv_root init_progs $(select_bootloader_pkg) || return 1 |