fix(lvm,cryptroot extensions): introduce another variable to keep track of the physical partition/uuid and rootdevice/uuid seperately

This commit is contained in:
M.Schmidt
2024-11-29 23:05:49 +01:00
committed by Igor
parent 43166a8354
commit 3ec24d40e8
2 changed files with 12 additions and 11 deletions

View File

@@ -72,12 +72,6 @@ function post_create_partitions__setup_lvm() {
function prepare_root_device__create_volume_group() {
LOOP=$(losetup -f)
[[ -z $LOOP ]] && exit_with_error "Unable to find free loop device"
check_loop_device "$LOOP"
losetup $LOOP ${SDCARD}.raw
partprobe $LOOP
display_alert "Using LVM root" "${EXTENSION}" "info"
vgscan
vgchange -a y ${LVM_VG_NAME}
@@ -97,4 +91,4 @@ function post_umount_final_image__close_lvm() {
# Deactivat the Volume Group
vgchange -a n ${LVM_VG_NAME}
display_alert "LVM deactivated volume group" "${EXTENSION}" "info"
}
}