Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso
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
commit959a643658c0c7516f451ce50fa62540a515d392 (patch)
tree5fb5983cf9eecd868a6cb424fa09a1b80ce83208 /hooks/archiso
parentbcc7e28842191692e10ff011b2e057b5bad07f69 (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>
Diffstat (limited to 'hooks/archiso')
-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}"