Commit 9be93ceb authored by Mike Hibler's avatar Mike Hibler

Fix heuristic for finding root disk so it works on Fedora 15.

Fedora 15 "df" shows two lines for "/" mount; we ignore the "rootfs" line.
parent c1ff2263
......@@ -110,9 +110,10 @@ if (!$lvm || ($lvm && $lmonster)) {
}
#
# XXX determine the disk based on the root fs
# XXX determine the disk based on the root fs.
# Note: 'rootfs' grep is because Fedora 15 df shows two lines for "/"
#
my $rootdev = `df | egrep '/\$'`;
my $rootdev = `df | egrep '/\$' | grep -v rootfs`;
if ($rootdev =~ /^\/dev\/([a-z]+)\d+\s+/) {
$disk = $1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment