[PATCH initramfs-tools 0/5] Wait for resume devices

Ben Hutchings ben at decadent.org.uk
Sun Feb 19 01:31:54 UTC 2017


This series changes the local_device_setup function and the resume
script so that we wait for a resume device to appear, same as for
the root and /usr devices.  However, it is not a fatal error if
the resume device doesn't appear (which would be a regression).

Also, it makes the time limit global (using /proc/uptime) so that
this change doesn't increase the time for a panic shell to appear
in case both the resume and root devices don't appear.  This could
cause a regression for mdadm, as its local-block script has a gross
hack to count how many times we run it and to do something different
when it looks like we're 2/3 of the way to the timeout.  That would
probably need to be resolved somehow before we make this change.

Ben.

Ben Hutchings (5):
  scripts/local: local_device_setup should not assume devices hold file
    systems
  scripts/local: Apply a single time limit to all device discovery
  scripts/local: Add option for local_device_setup to return failure
  scripts/local-premount/resume: Check for kernel resume interface
    earlier
  scripts/local-premount/resume: Use local_device_setup for resume
    device

 scripts/local                 | 18 ++++++++++++-----
 scripts/local-premount/resume | 45 ++++++++-----------------------------------
 2 files changed, 21 insertions(+), 42 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20170219/f31676a3/attachment.sig>


More information about the pkg-mdadm-devel mailing list