diff options
| author | maximilian attems <maks@debian.org> | 2010-04-08 05:59:04 +0200 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2010-04-08 05:59:46 +0200 |
| commit | a46c26e0a01a83f41d7e491f1f1a747d5f000c85 (patch) | |
| tree | c4162b4fca9bcaebf47545cbfe9132e0c9426d40 | |
| parent | 6e22545f2f2355a3defb6bdb6a7a72329d54d373 (diff) | |
| download | initramfs-tools-a46c26e0a01a83f41d7e491f1f1a747d5f000c85.tar.gz initramfs-tools-a46c26e0a01a83f41d7e491f1f1a747d5f000c85.zip | |
init: fix hardcoded resume handling
got confused in course of #572858,
uppercase is for hardcoded device strings as here,
pick up RESUME and not resume from config file.
Closes: #576700
Signed-off-by: maximilian attems <maks@debian.org>
| -rwxr-xr-x | init | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -127,7 +127,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=}" @@ -181,6 +181,8 @@ done if [ -n "${noresume}" ]; then export noresume unset resume +else + resume=${RESUME:-} fi [ -n "${netconsole}" ] && modprobe netconsole netconsole="${netconsole}" |
