diff options
author | Jybz <j.biernacki@free.fr> | 2024-04-20 22:25:26 +0200 |
---|---|---|
committer | Jybz <j.biernacki@free.fr> | 2024-04-20 22:25:26 +0200 |
commit | 38b4b5765362257e21b06e06f612cd764d4a3f6b (patch) | |
tree | 21609f78babd6fa006fd770b746b03234c29d285 /modules.d | |
parent | 0cee55d5a1b60cc67a623f0b107a950633ed72fc (diff) | |
download | mageia-dracut-conf-38b4b5765362257e21b06e06f612cd764d4a3f6b.tar mageia-dracut-conf-38b4b5765362257e21b06e06f612cd764d4a3f6b.tar.gz mageia-dracut-conf-38b4b5765362257e21b06e06f612cd764d4a3f6b.tar.bz2 mageia-dracut-conf-38b4b5765362257e21b06e06f612cd764d4a3f6b.tar.xz mageia-dracut-conf-38b4b5765362257e21b06e06f612cd764d4a3f6b.zip |
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
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/90mgalive/mgalive-root.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |