summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-04-07 11:51:00 +0200
committermaximilian attems <max@stro.at>2008-04-07 11:51:00 +0200
commitaaf9b600c8ed9055b4e283e6cf1394b6f9f6ac8e (patch)
tree75697af4f5764d2b279b1665c01e6360fdc582cb /init
parentc1fd9aa6213613fed140da7fe68c67a91f478509 (diff)
downloadinitramfs-tools-aaf9b600c8ed9055b4e283e6cf1394b6f9f6ac8e.tar.gz
initramfs-tools-aaf9b600c8ed9055b4e283e6cf1394b6f9f6ac8e.zip
resume: Add support for resume_offset swap file suspend to disk.
Parse cmdline for resume_offset, export it and pass it to the klibc resume binary. Based on a patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>. Bonus small codingstyle clean up of local-premount/resume.
Diffstat (limited to 'init')
-rwxr-xr-xinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/init b/init
index 3a93ef8..70f4384 100755
--- a/init
+++ b/init
@@ -50,6 +50,7 @@ export rootmnt=/root
export debug=
export panic=
export blacklist=
+export resume_offset=
# Parse command line options
for x in $(cat /proc/cmdline); do
@@ -97,6 +98,9 @@ for x in $(cat /proc/cmdline); do
resume=*)
RESUME="${x#resume=}"
;;
+ resume_offset=*)
+ resume_offset="${x#resume_offset=}"
+ ;;
noresume)
noresume=y
;;