mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
re-instantiates LVM required devices.
This commit is contained in:
@@ -71,6 +71,13 @@ 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}
|
||||
|
||||
Reference in New Issue
Block a user