summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-15 21:11:06 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:07 +0100
commit088e23d8225c53f92bc12125d95a11e165869a9a (patch)
tree393f14b01717af758f44b1500941e69d87290904 /scripts/live-bottom
parent2ee2da59624d6d328bdd249f13ea680c576d5e34 (diff)
downloadlive-boot-088e23d8225c53f92bc12125d95a11e165869a9a.tar.gz
live-boot-088e23d8225c53f92bc12125d95a11e165869a9a.zip
Adding proper code comments about vol_id removal.
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/12fstab3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab
index ae90df8..cd78edf 100755
--- a/scripts/live-bottom/12fstab
+++ b/scripts/live-bottom/12fstab
@@ -66,10 +66,13 @@ then
continue
fi
+ # udev (>= 146) no longer provides vol_id
if [ -x /lib/udev/vol_id ]
then
+ # lenny
/lib/udev/vol_id ${device%%[0-9]*} 2>/dev/null | grep -q "^ID_FS_USAGE=raid" && continue
else
+ # squeeze
/sbin/blkid -o udev -p ${device%%[0-9]*} | grep -q "^ID_FS_USAGE=raid" && continue
fi