|
Harald Hoyer |
460d2c |
From f7e924c577cf113360798b1a670c584a3308c73f Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
460d2c |
From: Frederick Grose <fgrose@sugarlabs.org>
|
|
Harald Hoyer |
460d2c |
Date: Sun, 9 Aug 2020 00:23:54 -0400
|
|
Harald Hoyer |
460d2c |
Subject: [PATCH] dmsquash-live-root: Remove obsolete osmin.img processing.
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
osmin.img is no longer used by anaconda or generated by
|
|
Harald Hoyer |
460d2c |
livemedia-creator. livecd-creator will soon drop it as well.
|
|
Harald Hoyer |
460d2c |
Removing this code will allow OverlayFS boots to proceed when
|
|
Harald Hoyer |
460d2c |
osmin.img is present in the .iso image.
|
|
Harald Hoyer |
460d2c |
---
|
|
Harald Hoyer |
460d2c |
modules.d/90dmsquash-live/dmsquash-live-root.sh | 20 --------------------
|
|
Harald Hoyer |
460d2c |
1 file changed, 20 deletions(-)
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
460d2c |
index 6324fe83..d686d255 100755
|
|
Harald Hoyer |
460d2c |
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
460d2c |
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
|
|
Harald Hoyer |
460d2c |
@@ -268,20 +268,6 @@ do_live_overlay() {
|
|
Harald Hoyer |
460d2c |
}
|
|
Harald Hoyer |
460d2c |
# end do_live_overlay()
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
-# we might have a genMinInstDelta delta file for anaconda to take advantage of
|
|
Harald Hoyer |
460d2c |
-if [ -e /run/initramfs/live/${live_dir}/osmin.img ]; then
|
|
Harald Hoyer |
460d2c |
- OSMINSQFS=/run/initramfs/live/${live_dir}/osmin.img
|
|
Harald Hoyer |
460d2c |
- # decompress the delta data
|
|
Harald Hoyer |
460d2c |
- dd if=$OSMINSQFS of=/run/initramfs/osmin.img 2> /dev/null
|
|
Harald Hoyer |
460d2c |
- OSMIN_SQUASHED_LOOPDEV=$( losetup -f )
|
|
Harald Hoyer |
460d2c |
- losetup -r $OSMIN_SQUASHED_LOOPDEV /run/initramfs/osmin.img
|
|
Harald Hoyer |
460d2c |
- mkdir -m 0755 -p /run/initramfs/squashfs.osmin
|
|
Harald Hoyer |
460d2c |
- mount -n -t squashfs -o ro $OSMIN_SQUASHED_LOOPDEV /run/initramfs/squashfs.osmin
|
|
Harald Hoyer |
460d2c |
- OSMIN_LOOPDEV=$( losetup -f )
|
|
Harald Hoyer |
460d2c |
- losetup -r $OSMIN_LOOPDEV /run/initramfs/squashfs.osmin/osmin
|
|
Harald Hoyer |
460d2c |
- umount -l /run/initramfs/squashfs.osmin
|
|
Harald Hoyer |
460d2c |
-fi
|
|
Harald Hoyer |
460d2c |
-
|
|
Harald Hoyer |
460d2c |
# we might have an embedded fs image on squashfs (compressed live)
|
|
Harald Hoyer |
460d2c |
if [ -e /run/initramfs/live/${live_dir}/${squash_image} ]; then
|
|
Harald Hoyer |
460d2c |
SQUASHED="/run/initramfs/live/${live_dir}/${squash_image}"
|
|
Harald Hoyer |
460d2c |
@@ -370,12 +356,6 @@ if [ -n "$FSIMG" ]; then
|
|
Harald Hoyer |
460d2c |
fi
|
|
Harald Hoyer |
460d2c |
fi
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
-if [ -b "$OSMIN_LOOPDEV" ]; then
|
|
Harald Hoyer |
460d2c |
- # set up the devicemapper snapshot device, which will merge
|
|
Harald Hoyer |
460d2c |
- # the normal live fs image, and the delta, into a minimzied fs image
|
|
Harald Hoyer |
460d2c |
- echo "0 $sz snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV P 8" | dmsetup create --readonly live-osimg-min
|
|
Harald Hoyer |
460d2c |
-fi
|
|
Harald Hoyer |
460d2c |
-
|
|
Harald Hoyer |
460d2c |
if [ -n "$reloadsysrootmountunit" ]; then
|
|
Harald Hoyer |
460d2c |
eval "$reloadsysrootmountunit"
|
|
Harald Hoyer |
460d2c |
systemctl daemon-reload
|
|
Harald Hoyer |
460d2c |
|