summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-03-08 22:06:39 +0100
committermaximilian attems <maks@debian.org>2010-03-08 22:08:15 +0100
commit1277b2e7590a3a1354440472da497b68e8ba5385 (patch)
tree7ff193bfc2a34a88ded83342154bb8bb02bf1f80 /init
parentd3de22eda550c41d0e262a0140a33a5979c772fd (diff)
downloadinitramfs-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-xinit8
1 files changed, 4 insertions, 4 deletions
diff --git a/init b/init
index 234c3e5..e1d4151 100755
--- a/init
+++ b/init
@@ -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