Skip to content

Commit

Permalink
re-instantiates LVM required devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael committed Sep 12, 2024
1 parent a227bfd commit f33518a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions/lvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f33518a

Please sign in to comment.