diff options
| author | Marco Amadori <amadorim@vdavda.com> | 2008-12-02 08:57:48 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:03 +0100 |
| commit | a8b795f00da8ab5952ef11f1f4ef170d47591c98 (patch) | |
| tree | 41051e297f8783445ba6dc5793a7c79d39ba6721 /scripts/live-bottom | |
| parent | cc1a753fc487f60c14619d9dcd6cf5a756f831c1 (diff) | |
| download | live-boot-a8b795f00da8ab5952ef11f1f4ef170d47591c98.tar.gz live-boot-a8b795f00da8ab5952ef11f1f4ef170d47591c98.zip | |
Reworked integrity-check (Closes: #507477).
* Changes:
- it reboots only if it succeed, otherwise it panics.
- it checks md5sum just after media is mounted, not after /root is
mounted. This allow a faster and safer reboot.
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/01integrity_check | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check deleted file mode 100755 index e4710f3..0000000 --- a/scripts/live-bottom/01integrity_check +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -#set -e - -# initramfs-tools header - -PREREQ="" - -prereqs() -{ - echo "${PREREQ}" -} - -case "${1}" in - prereqs) - prereqs - exit 0 - ;; -esac - -# live-initramfs script - -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 |
