diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-28 20:54:10 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | 56ac3ff5ec3730d0dcf04d5af7145446a0143b9b (patch) | |
| tree | cbf0b0839530b3c63546123a236179bb016f87c1 /scripts | |
| parent | 74b2605aeda6083f762b0fa1cc2521dbb2ef67a6 (diff) | |
| download | live-boot-56ac3ff5ec3730d0dcf04d5af7145446a0143b9b.tar.gz live-boot-56ac3ff5ec3730d0dcf04d5af7145446a0143b9b.zip | |
Merging casper 1.106.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 12 | ||||
| -rwxr-xr-x | scripts/live-bottom/01integrity_check | 11 | ||||
| -rwxr-xr-x | scripts/live-bottom/24preseed | 9 |
3 files changed, 22 insertions, 10 deletions
diff --git a/scripts/live b/scripts/live index d4b253b..975c03d 100755 --- a/scripts/live +++ b/scripts/live @@ -727,7 +727,7 @@ do_snap_copy () if [ -n "${fstype}" ] then # Copying stuff... - mount -t "${fstype}" -o ro "${fromdev}" "${tomount}" + mount -t "${fstype}" -o ro,noatime "${fromdev}" "${tomount}" cp -a "${tomount}"/* ${todir} umount "${tomount}" else @@ -903,7 +903,7 @@ setup_unionfs () mkdir -p "${croot}/${imagename}" echo "debug: Can not mount backdev ${backdev} (image = ${image}) on croot/imagename ${croot}/${imagename}" - mount -t "${fstype}" -o ro "${backdev}" "${croot}/${imagename}" || panic "Can not mount ${backdev} (${image}) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}" + mount -t "${fstype}" -o ro,noatime "${backdev}" "${croot}/${imagename}" || panic "Can not mount ${backdev} (${image}) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}" fi done @@ -927,9 +927,9 @@ setup_unionfs () fi fi - mount ${cowdevice} -t ${cow_fstype} -o rw /cow || panic "Can not mount ${cowdevice} on /cow" + mount ${cowdevice} -t ${cow_fstype} -o rw,noatime /cow || panic "Can not mount ${cowdevice} on /cow" - mount -t ${UNIONTYPE} -o dirs=/cow=rw:${rofsstring} ${UNIONTYPE} "${rootmnt}" || panic "${UNIONTYPE} mount failed" + mount -t ${UNIONTYPE} -o noatime,dirs=/cow=rw:${rofsstring} ${UNIONTYPE} "${rootmnt}" || panic "${UNIONTYPE} mount failed" # Adding other custom mounts if [ -n "${PERSISTENT}" ] @@ -940,7 +940,7 @@ setup_unionfs () if [ -b "${homecow}" ] then - mount -t $(get_fstype "${homecow}") -o rw "${homecow}" "${rootmnt}/home" + mount -t $(get_fstype "${homecow}") -o rw,noatime "${homecow}" "${rootmnt}/home" export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy() else [ "${quiet}" != "y" ] && log_warning_msg "Unable to find the persistent home medium" @@ -994,7 +994,7 @@ check_dev () if is_supported_fs ${fstype} then - mount -t ${fstype} -o ro "${devname}" ${mountpoint} || continue + mount -t ${fstype} -o ro,noatime "${devname}" ${mountpoint} || continue if is_live_path ${mountpoint} then diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check index 4ac847f..e4710f3 100755 --- a/scripts/live-bottom/01integrity_check +++ b/scripts/live-bottom/01integrity_check @@ -20,7 +20,10 @@ esac # live-initramfs script -grep -qs integrity-check /proc/cmdline || exit 0 - -cd /live/image -md5sum -c md5sum.txt < /dev/tty8 +if grep -qs integrity-check /proc/cmdline +then + cd /live/image + md5sum -c md5sum.txt < /dev/tty8 > /dev/tty8 + reboot + while :; do sleep 60; done +fi diff --git a/scripts/live-bottom/24preseed b/scripts/live-bottom/24preseed index f4b2db0..3d0bdaf 100755 --- a/scripts/live-bottom/24preseed +++ b/scripts/live-bottom/24preseed @@ -52,6 +52,15 @@ then done fi +reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive casper)" +if [ "${reply#0 }" != "$reply" ]; then + reply="${reply#0 }" + sh -c "$reply" +fi + +# Clear out debconf database backup files to save memory. +rm -f /root/var/cache/debconf/*.dat-old + log_end_msg exit 0 |
