summaryrefslogtreecommitdiffstats
path: root/modules.d
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d')
-rwxr-xr-xmodules.d/90mgalive/mgalive-root.sh6
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