summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-04-22 16:24:41 +0000
committerThomas Backlund <tmb@mageia.org>2012-04-22 16:24:41 +0000
commit53ea16f9f81c7d89f67f44c3a244d2af376b28e4 (patch)
tree6efcf79a47c04ba60dc0beb544853c9ec2c2fdc7
parentca6ca8af55c8f191d5d9826c6594e70d95a818e6 (diff)
downloaddraklive-config-53ea16f9f81c7d89f67f44c3a244d2af376b28e4.tar
draklive-config-53ea16f9f81c7d89f67f44c3a244d2af376b28e4.tar.gz
draklive-config-53ea16f9f81c7d89f67f44c3a244d2af376b28e4.tar.bz2
draklive-config-53ea16f9f81c7d89f67f44c3a244d2af376b28e4.tar.xz
draklive-config-53ea16f9f81c7d89f67f44c3a244d2af376b28e4.zip
make sure to strip partition number only on /dev/sd... devices (mga #5518)
-rwxr-xr-xfiles/90mgalive/mgalive-root.sh2
1 files changed, 1 insertions, 1 deletions
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