summaryrefslogtreecommitdiffstats
path: root/modules.d/90mgalive/mgalive-root.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2024-04-20 21:57:49 +0200
committerJybz <j.biernacki@free.fr>2024-04-20 21:57:49 +0200
commite1d603a423da93d2f3aed511cbec8482bd4a1eec (patch)
tree839891d9ee9e46ebff00260cab763ffb4d4c085d /modules.d/90mgalive/mgalive-root.sh
parentba5c0cb7cd9fc28f1e58af4b735323197458a15f (diff)
downloadmageia-dracut-conf-e1d603a423da93d2f3aed511cbec8482bd4a1eec.tar
mageia-dracut-conf-e1d603a423da93d2f3aed511cbec8482bd4a1eec.tar.gz
mageia-dracut-conf-e1d603a423da93d2f3aed511cbec8482bd4a1eec.tar.bz2
mageia-dracut-conf-e1d603a423da93d2f3aed511cbec8482bd4a1eec.tar.xz
mageia-dracut-conf-e1d603a423da93d2f3aed511cbec8482bd4a1eec.zip
mgalive: allow for USB sticks appearing as mmc devices
- origin https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1361037&r2=1368035
Diffstat (limited to 'modules.d/90mgalive/mgalive-root.sh')
-rwxr-xr-xmodules.d/90mgalive/mgalive-root.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/90mgalive/mgalive-root.sh b/modules.d/90mgalive/mgalive-root.sh
index 2150aec..9d3f86a 100755
--- a/modules.d/90mgalive/mgalive-root.sh
+++ b/modules.d/90mgalive/mgalive-root.sh
@@ -17,7 +17,7 @@ mkdir -m 0755 -p /live/union
mkdir -m 0755 -p /run/mgalive/ovlsize
# Get the base device name
-basedev=$(echo $livedev | sed 's,\(/dev/sd[a-z]\)1,\1,g')
+basedev=$(echo $livedev | sed -e 's,\(/dev/sd[a-z]\)1,\1,g' -e 's,\(/dev/mmcblk[0-9]\)p1,\1,g')
# Make it available to draklive-install and mgalive-shutdown
echo $basedev > /run/mgalive/basedev