[systemd-bugs] [Bug 84689] "Failed to determine block device of root file system: No such file or directory" on boot

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 25 17:37:42 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=84689

--- Comment #2 from Ralph_Ulrich <eulenreich at gmx.de> ---
This was a longterm problem for me until I found googling:
#!/bin/bash
R=$(stat -c '%04D' / )
for f in $(find /dev -type b 2>/dev/null) ; do
    C=$(stat -c '%02t%02T' $f )
    [ "$C" = "$R" ] && ROOTDEVICE="$f" && break
done
echo $ROOTDEVICE
#---
But watching your nluug/2014-11-20 about capabilities that script I use to find
root would not work in a container which has no capability to see /dev/RAW
devices?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141126/4c7c44bc/attachment.html>


More information about the systemd-bugs mailing list