diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/live | 19 | ||||
-rwxr-xr-x | scripts/live-bottom/01integrity_check | 2 | ||||
-rwxr-xr-x | scripts/live-bottom/05mountpoints | 6 |
3 files changed, 17 insertions, 10 deletions
diff --git a/scripts/live b/scripts/live index 5397837..35ba702 100755 --- a/scripts/live +++ b/scripts/live @@ -7,7 +7,7 @@ export PATH=/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin echo "/root/lib" >> /etc/ld.so.conf echo "/root/usr/lib" >> /etc/ld.so.conf -mountpoint=/live_media +mountpoint=/live/image root_persistence="live-rw" home_persistence="home-rw" @@ -49,6 +49,13 @@ parse_cmdline () export DEFCONFSOLE ;; + debug) + DEBUG="Yes" + export DEBUG + + set -x + ;; + hostname=*) HOSTNAME=${x#hostname=} LIVECONF="changed" @@ -143,7 +150,7 @@ parse_cmdline () export NETBOOT ;; - nfsopts=) + nfsopts=*) NFSOPTS=${x#nfsopts=} export NFSOPTS ;; @@ -201,7 +208,7 @@ parse_cmdline () export SHOWMOUNTS ;; - timezone=*) + timezone=*) TIMEZONE="${x#timezone=}" export TIMEZONE ;; @@ -659,8 +666,8 @@ setup_unionfs() { fi # shows cow fs on /cow for use by live-snapshot - mkdir -p "${rootmnt}/cow" - mount -o bind /cow "${rootmnt}/cow" + mkdir -p "${rootmnt}/live/cow" + mount -o bind /cow "${rootmnt}/live/cow" } check_dev () @@ -793,7 +800,7 @@ mountroot() { live_dest="${TODISK}" fi if [ "${live_dest}" ]; then - log_begin_msg "Copying live_media to ${live_dest}" + log_begin_msg "Copying live media to ${live_dest}" copy_live_to "${livefs_root}" "${live_dest}" log_end_msg fi diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check index bd88a76..b855b62 100755 --- a/scripts/live-bottom/01integrity_check +++ b/scripts/live-bottom/01integrity_check @@ -20,4 +20,4 @@ esac # live-initramfs script -grep integrity-check /proc/cmdline && live-md5check /live_media /live_media/md5sum.txt < /dev/tty8 +grep integrity-check /proc/cmdline && live-md5check /live/image /live/image/md5sum.txt < /dev/tty8 diff --git a/scripts/live-bottom/05mountpoints b/scripts/live-bottom/05mountpoints index 82cc7c3..028c74b 100755 --- a/scripts/live-bottom/05mountpoints +++ b/scripts/live-bottom/05mountpoints @@ -27,9 +27,9 @@ log_begin_msg "Moving mount points..." # live-initramfs script # 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 --move /live_media /root/live_media +if [ ! -d /root/live/image ]; then + mkdir -p /root/live/image + mount -n --move /live/image /root/live/image fi log_end_msg |