X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=fdf7b38efa5fa88d490ba618cb3869f984295b1d;hb=335d3be3a325338956ede23a3fc27b9e907adbed;hp=e1f69dd7c95af0893aa9071b3b9f2aeda6098e7e;hpb=fbfb4d9feddca5f14025d200d032bd05959772e7;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index e1f69dd..fdf7b38 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 @@ -184,7 +190,15 @@ setup_loop () local readonly=${6} modprobe -q -b "${module}" - udevsettle + + if [ -x /sbin/udevadm ] + then + # lenny + udevadm settle + else + # etch + udevsettle + fi for loopdev in ${pattern} do