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:
parent
441d989243
commit
e33c687400
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ _mnt_bind()
|
||||||
_mnt_squashfs()
|
_mnt_squashfs()
|
||||||
{
|
{
|
||||||
msg "::: Adding new union branch: ${1}"
|
msg "::: Adding new union branch: ${1}"
|
||||||
|
/bin/modprobe -q loop >/dev/null 2>&1
|
||||||
mkdir -p "/tmpfs/mnt/loop${LOOP_NUM}"
|
mkdir -p "/tmpfs/mnt/loop${LOOP_NUM}"
|
||||||
if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${1} > /dev/null 2>&1; then
|
if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${1} > /dev/null 2>&1; then
|
||||||
echo "ERROR: Cannot mount loop device /dev/loop${LOOP_NUM}"
|
echo "ERROR: Cannot mount loop device /dev/loop${LOOP_NUM}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue