From 53ea16f9f81c7d89f67f44c3a244d2af376b28e4 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sun, 22 Apr 2012 16:24:41 +0000 Subject: make sure to strip partition number only on /dev/sd... devices (mga #5518) --- files/90mgalive/mgalive-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/90mgalive/mgalive-root.sh b/files/90mgalive/mgalive-root.sh index 6873e8c..457b9d0 100755 --- a/files/90mgalive/mgalive-root.sh +++ b/files/90mgalive/mgalive-root.sh @@ -18,7 +18,7 @@ mkdir -m 0755 -p /live/union # fix udev isohybrid LABEL issues (mga #3334) # by reading the device we get, stripping away partition number, # and mounth the resulting device -realdev=$(echo $livedev |sed 's,1,,g') +realdev=$(echo $livedev |sed 's,\(/dev/sd[a-z]\)1,\1,g') # mount the livecd mount -n -t iso9660 -o ro $realdev /live/media -- cgit v1.2.1