Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/github/pr/17'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Sep 8, 2023
2 parents 35b6ae0 + 98d3d05 commit 5ecdddc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions components/9990-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,30 @@ Live ()
fi
fi

# If the live media location is given via command line and access to it
# involves LVM volumes, the corresponding volumes need to be activated.
IFS=','
for dev in $(echo "$LIVE_MEDIA")
do
case "$dev" in
/dev/mapper/*)
eval $(dmsetup splitname --nameprefixes --noheadings --rows "${dev#/dev/mapper/}")
if [ "$DM_VG_NAME" ] && [ "$DM_LV_NAME" ]
then
lvm lvchange -aay -y --sysinit --ignoreskippedcluster "$DM_VG_NAME/$DM_LV_NAME"
fi
;;
/dev/*/*)
# Could be /dev/VG/LV; use lvs to check
if lvm lvs -- "$dev" >/dev/null 2>&1
then
lvm lvchange -aay -y --sysinit --ignoreskippedcluster "$dev"
fi
;;
esac
done
unset IFS

# Scan local devices for the image
i=0
while [ "$i" -lt 60 ]
Expand Down

0 comments on commit 5ecdddc

Please sign in to comment.