Do we still need wait-for-root or /bin/resume?

Asked by A Dasgupta on 2012-04-16

Since initramfs is including the blkid program (from util-linux)
and blkid uses udev as backend anyway, we can replace the
C program binary wait-for-root simply with a scripting line
such as:

   blkid -p -o value -s TYPE <device>

Also the klibc-utils program /bin/resume is a C program,
but all that it is doing is echoing major:minor[:offset]
onto /sys/power/resume, which is easily doable by
a line of script.

It appears to me that by dropping these two programs
will make things simpler, easier to debug, and more consistent
with the initramfs philosophy of booting via simple scripting
and modular user programs.

Question information

English Edit question
Ubuntu initramfs-tools Edit question
No assignee Edit question
Last query:
Last reply:

i suggest you report a bug with your fix. Sounds exciting.

A Dasgupta (adg) said : #2

Will do, but one step at a time. I will open a bug and post my resume boot script
which does not use the klibc C program binary /bin/resume any more. (The
script still falls back to wait-for-root if blkid is not available.)

Thanks for your comment.

A Dasgupta (adg) said : #3

See the following for the new resume boot script which does not need /bin/resume:


Can you help with this problem?

Provide an answer of your own, or ask A Dasgupta for more information if necessary.

To post a message you must log in.