diff options
author | maximilian attems <maks@debian.org> | 2010-03-08 22:06:39 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-03-08 22:08:15 +0100 |
commit | 1277b2e7590a3a1354440472da497b68e8ba5385 (patch) | |
tree | 7ff193bfc2a34a88ded83342154bb8bb02bf1f80 /init | |
parent | d3de22eda550c41d0e262a0140a33a5979c772fd (diff) | |
download | initramfs-tools-1277b2e7590a3a1354440472da497b68e8ba5385.tar.gz initramfs-tools-1277b2e7590a3a1354440472da497b68e8ba5385.zip |
init: rexport resume to reallow it's hardcoded usage
as bonus also simplify the noresume case, just unset it in that case.
this should fix #572858 and friends,
looks broken to me in Lenny too.
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'init')
-rwxr-xr-x | init | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -45,6 +45,7 @@ export rootmnt=/root export debug= export panic= export blacklist= +export resume= export resume_offset= # Bring in the main config @@ -121,7 +122,7 @@ for x in $(cat /proc/cmdline); do BOOT=${x#boot=} ;; resume=*) - RESUME="${x#resume=}" + resume="${x#resume=}" ;; resume_offset=*) resume_offset="${x#resume_offset=}" @@ -169,10 +170,9 @@ for x in $(cat /proc/cmdline); do esac done -if [ -z "${noresume}" ]; then - export resume=${RESUME} -else +if [ -n "${noresume}" ]; then export noresume + unset resume fi depmod -a |