mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
fix(lvm,cryptroot extensions): introduce another variable to keep track of the physical partition/uuid and rootdevice/uuid seperately
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user