projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merging casper 1.148.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
05mountpoints
diff --git
a/scripts/live-bottom/05mountpoints
b/scripts/live-bottom/05mountpoints
index
36c2972
..
ce151e1
100755
(executable)
--- a/
scripts/live-bottom/05mountpoints
+++ b/
scripts/live-bottom/05mountpoints
@@
-1,29
+1,36
@@
#!/bin/sh
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Moving mount points..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
prereqs()
{
- echo "$
PREREQ
"
+ echo "$
{PREREQ}
"
}
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Moving mount points"
+
+# live-initramfs script
# Move to the new root filesystem so that programs there can get at it.
# Move to the new root filesystem so that programs there can get at it.
-if [ ! -d /root/live_media ]; then
- mkdir -p /root/live_media
- mount -n -o move /live_media /root/live_media
+if [ ! -d /root/live/image ]
+then
+ mkdir -p /root/live/image
+ mount --move /live/image /root/live/image
fi
log_end_msg
fi
log_end_msg