X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=314c33f59dd4599c8f60c5cece0f529815e58fd2;hb=e66f79476042794195978ee641aa7ea0d9ca6e0a;hp=6777f99772e6dc53a1f5599e19bc3d12648eeed7;hpb=088e23d8225c53f92bc12125d95a11e165869a9a;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 6777f99..314c33f 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -1,4 +1,4 @@ -# live-initramfs helper functions, used by live-initramfs on boot and by live-snapshot +# live-boot helper functions, used by live-boot on boot and by live-snapshot if [ ! -x "/bin/fstype" ] then @@ -187,7 +187,11 @@ setup_loop () local encryption=${5} local readonly=${6} - modprobe -q -b "${module}" + # the output of setup_loop is evaluated in other functions, + # modprobe leaks kernel options like "libata.dma=0" + # as "options libata dma=0" on stdout, causing serious + # problems therefor, so instead always avoid output to stdout + modprobe -q -b "${module}" 1>/dev/null udevadm settle