X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive-helpers;h=bb5653ce607375bbdf57187d766353b78b065404;hb=6c4ef88d692a03c47d374828ead246f7232d2850;hp=e1f69dd7c95af0893aa9071b3b9f2aeda6098e7e;hpb=9d591ba166697b8cac2c981329217f1d32baa764;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index e1f69dd..bb5653c 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -1,4 +1,3 @@ -#!/bin/sh # live-initramfs helper functions, used by live-initramfs on boot and by live-snapshot if [ ! -x "/bin/fstype" ] @@ -33,6 +32,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 +189,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