From 25702cd8d3d5c236f4a7b430eb5eae1f05985913 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 12 Jul 2022 16:47:02 +0200 Subject: setup-disk: allow set LVM partition size with LVM_SIZE fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501 --- setup-disk.in | 4 ++-- 1 file 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 -- cgit v1.2.3