Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Disable mount by label if we found a space inside fs-label.
authorMichael Prokop <mika@grml.org>
Sat Jan 27 17:58:24 2007 +0100 (22 months ago)
changeset 1534784b7c93da
manifest34784b7c93da
parent 14082c824d4064
child 164b4a1f4e56ad
tag0.3-13
Disable mount by label if we found a space inside fs-label.
debian/changelog
scanpartitions
--- a/debian/changelog Thu Dec 07 18:59:15 2006 +0100
+++ b/debian/changelog Sat Jan 27 17:58:24 2007 +0100
@@ -1,3 +1,12 @@ grml-scanpartitions (0.3-12) unstable; u
+grml-scanpartitions (0.3-13) unstable; urgency=low
+
+ * Disable mount by label for filesystem UFS. Thanks for reporting,
+ Mark. (Closes: issue77)
+ * Disable mount by label if we found a space inside fs-label.
+ Thanks for reporting, Mark. (Closes: issue76)
+
+ -- Michael Prokop <mika@grml.org> Sat, 27 Jan 2007 17:43:37 +0100
+
grml-scanpartitions (0.3-12) unstable; urgency=low
* Unset variables used multiple times to avoid too many
--- a/scanpartitions Thu Dec 07 18:59:15 2006 +0100
+++ b/scanpartitions Sat Jan 27 17:58:24 2007 +0100
@@ -64,9 +64,17 @@ for p in $partitions; do
if [ -x /lib/udev/vol_id ] ; then
PARTINFO="$(/lib/udev/vol_id $p 2>/dev/null)"
label="$(/lib/udev/vol_id $p 2>/dev/null | awk -F'=' '/ID_FS_LABEL=/ {print $2}' 2>/dev/null)"
+ case $label in
+ *\ *)
+ addinfo=" # space inside label ($label) not supported" && label=''
+ ;;
+ esac
case $PARTINFO in
*ID_FS_TYPE=ntfs*)
[ -n "$label" ] && addinfo=" # ntfs does not support mount by label ($label)" && label=''
+ ;;
+ *ID_FS_TYPE=ufs*)
+ [ -n "$label" ] && addinfo=" # ufs does not support mount by label ($label)" && label=''
;;
esac
else