summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2024-04-20 22:40:04 +0200
committerJybz <j.biernacki@free.fr>2024-04-20 22:40:04 +0200
commitecca6a561826c8242c09dd4dfc71e54e769fe6e2 (patch)
tree41e0d9e943ba7ecd64c47fd1c421c104fe1fabd3
parent39c4645c4ba9c0b98dd3c5e4eedd9445b38414b6 (diff)
downloadmageia-dracut-conf-ecca6a561826c8242c09dd4dfc71e54e769fe6e2.tar
mageia-dracut-conf-ecca6a561826c8242c09dd4dfc71e54e769fe6e2.tar.gz
mageia-dracut-conf-ecca6a561826c8242c09dd4dfc71e54e769fe6e2.tar.bz2
mageia-dracut-conf-ecca6a561826c8242c09dd4dfc71e54e769fe6e2.tar.xz
mageia-dracut-conf-ecca6a561826c8242c09dd4dfc71e54e769fe6e2.zip
Updated to add boot option to temporarily disable persistence (mga#27674).
- origin: https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1649586&r2=1649975 - mgalive: add boot option to temporarily disable persistence (mga#27674).
-rwxr-xr-xmodules.d/90mgalive/mgalive-root.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/90mgalive/mgalive-root.sh b/modules.d/90mgalive/mgalive-root.sh
index e5dd177..dd09be7 100755
--- a/modules.d/90mgalive/mgalive-root.sh
+++ b/modules.d/90mgalive/mgalive-root.sh
@@ -50,6 +50,8 @@ basedir=$(getarg mgalive.basedir)
overlay=$(getarg mgalive.overlay)
if [ -z "$overlay" ] ; then
overlay=$(blkid -t LABEL=mgalive-persist -o device | grep $basedev'\|'/dev/mapper)
+elif [ "$overlay" = "ram" ] ; then
+ overlay=
else
overlay=$livedev$overlay
fi