[SCM] debian-live branch, master, updated. debian/1.136.3-1-8-g5e46790
Marco Amadori
marco.amadori at gmail.com
Thu Aug 7 15:05:58 UTC 2008
The following commit has been merged in the master branch:
commit 5e46790447292b7d62e3d84ab1b544bb1fb9306a
Author: Marco Amadori <marco.amadori at gmail.com>
Date: Thu Aug 7 00:07:57 2008 +0200
Be sure that the discovered filesystem is not null.
- While scanning for a filesystem on a disk, the klibc utility can
return a null string if it not finds a filesystem (e.g. on a container
partition), and grepping for a null string either reports true if
escaped or hangs grep if not escaped. Both conditions must be avoided
in order to report that the kernel supports the filesystem named as
the string.
Signed-off-by: Marco Amadori <marco.amadori at gmail.com>
diff --git a/scripts/live-helpers b/scripts/live-helpers
index e1f69dd..619cbb4 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -33,6 +33,12 @@ is_supported_fs ()
{
fstype="${1}"
+ # Validate input first
+ if [ -z "${fstype}" ]
+ then
+ return 1
+ fi
+
# Try to look if it is already supported by the kernel
if grep -q ${fstype} /proc/filesystems
then
--
debian-live
More information about the debian-live-changes
mailing list