diff options
author | Michael Prokop <mika@debian.org> | 2010-06-08 03:02:08 +0200 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2010-06-08 03:50:36 +0200 |
commit | b1c242ffc5762fea6c15fe880e352008a5c34c43 (patch) | |
tree | fd38e6db1d33076ff18788152e122ce231a789d3 /scripts/functions | |
parent | 86223e387feb41c8dd15231fc87ce23c2b71c310 (diff) | |
download | initramfs-tools-b1c242ffc5762fea6c15fe880e352008a5c34c43.tar.gz initramfs-tools-b1c242ffc5762fea6c15fe880e352008a5c34c43.zip |
hook-functions: make device name handling for /proc/mdstat more flexible for MODULES=dep
We can't assume it's always [hs]dX# in /proc/mdstat.
It can be e.g. also [hs]dX (raw device) or dm-## as well.
So don't statically calculate the string based on
string length but instead try to be as smart as
possible. Also add support for handling additional
arguments in the /proc/mdstat output like
"(auto-read-only)".
This affects MODULES=dep only.
[Closes: #584520] + [Closes: #514756]
Reported-by: Simon Richter <Simon.Richter@hogyros.de>
Reported-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'scripts/functions')
0 files changed, 0 insertions, 0 deletions