Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2008-05-17 00:40:10 -0500
committerSimo Leone <simo@archlinux.org>2008-05-17 00:40:10 -0500
commite33c6874008ea3e1d06593f53e256685aaaa991c (patch)
treedde5a90d5acc260c5387873811af6c696c0e8715
parent441d989243e8ca279bac256991ad244d56a756a4 (diff)
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>
-rw-r--r--hooks/archiso1
1 files changed, 1 insertions, 0 deletions
diff --git a/hooks/archiso b/hooks/archiso
index 5dad21a..2fcf93f 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -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}"