Browse Source

iso-scan: Release resources on iso-scan boots with rd.live.ram

Unmounting the image iso, detaching its loop device, and unmounting
its parent partition can simplify installation to the parent disk.

Note that programs or scripts using the /run/initramfs/live mount
point will fail.
master
Frederick Grose 6 years ago committed by Harald Hoyer
parent
commit
3c8c807db1
  1. 6
      modules.d/90dmsquash-live/apply-live-updates.sh

6
modules.d/90dmsquash-live/apply-live-updates.sh

@ -18,3 +18,9 @@ if [ -h /dev/root ] && [ -d /run/initramfs/live/updates -o -d /updates ]; then @@ -18,3 +18,9 @@ if [ -h /dev/root ] && [ -d /run/initramfs/live/updates -o -d /updates ]; then
done
umount $NEWROOT/run
fi
# release resources on iso-scan boots with rd.live.ram
if [ -d /run/initramfs/isoscan ] &&
[ -f /run/initramfs/squashed.img -o -f /run/initramfs/rootfs.img ]; then
umount --detach-loop /run/initramfs/live
umount /run/initramfs/isoscan
fi

Loading…
Cancel
Save