From e1d603a423da93d2f3aed511cbec8482bd4a1eec Mon Sep 17 00:00:00 2001 From: Jybz Date: Sat, 20 Apr 2024 21:57:49 +0200 Subject: 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 --- modules.d/90mgalive/mgalive-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules.d/90mgalive/mgalive-root.sh') 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 -- cgit v1.2.1