From 38b4b5765362257e21b06e06f612cd764d4a3f6b Mon Sep 17 00:00:00 2001 From: Jybz Date: Sat, 20 Apr 2024 22:25:26 +0200 Subject: fix spurious error message when booting Live ISOs from CDROM - origin: https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1469756&r2=1559144 --- modules.d/90mgalive/mgalive-root.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules.d') diff --git a/modules.d/90mgalive/mgalive-root.sh b/modules.d/90mgalive/mgalive-root.sh index 8991749..347c676 100755 --- a/modules.d/90mgalive/mgalive-root.sh +++ b/modules.d/90mgalive/mgalive-root.sh @@ -60,7 +60,11 @@ info "mgalive basedir is $basedir/" info "mgalive overlay is $overlay" media=$livedev -ps=$(partx -go START $livedev) +if [ $livedev = $basedev ] ; then + ps=0 +else + ps=$(partx -go START $livedev) +fi if [ $ps -ne 0 ] ; then if strstr "$(blkid $basedev)" "iso9660" ; then # This happens when we boot from a USB stick with a isohybrid partition -- cgit v1.2.1