<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "Failed to determine block device of root file system: No such file or directory" on boot"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84689#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "Failed to determine block device of root file system: No such file or directory" on boot"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84689">bug 84689</a>
from <span class="vcard"><a class="email" href="mailto:eulenreich@gmx.de" title="Ralph_Ulrich <eulenreich@gmx.de>"> <span class="fn">Ralph_Ulrich</span></a>
</span></b>
<pre>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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>