modprobe loop module

udev doesn't modprobe loop by itself so we have
to ask it nicely.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2008-05-17 00:40:10 -05:00
parent 441d989243
commit e33c687400

View File

@ -10,6 +10,7 @@ _mnt_bind()
_mnt_squashfs()
{
msg "::: Adding new union branch: ${1}"
/bin/modprobe -q loop >/dev/null 2>&1
mkdir -p "/tmpfs/mnt/loop${LOOP_NUM}"
if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${1} > /dev/null 2>&1; then
echo "ERROR: Cannot mount loop device /dev/loop${LOOP_NUM}"