summaryrefslogtreecommitdiff
path: root/scripts/casper-bottom/05mountpoints
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/casper-bottom/05mountpoints')
-rwxr-xr-xscripts/casper-bottom/05mountpoints6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/casper-bottom/05mountpoints b/scripts/casper-bottom/05mountpoints
index 33f265d..20a28fd 100755
--- a/scripts/casper-bottom/05mountpoints
+++ b/scripts/casper-bottom/05mountpoints
@@ -21,7 +21,9 @@ esac
log_begin_msg "$DESCRIPTION"
# Move to the new root filesystem so that programs there can get at it.
-mkdir -p /root/live_media
-mount -n -o move /live_media /root/live_media
+if [ ! -d /root/live_media ]; then
+ mkdir -p /root/live_media
+ mount -n -o move /live_media /root/live_media
+fi
log_end_msg