index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-02-22 19:37:10 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-02-22 21:18:15 -0300 |
commit | 9feba5f4a868f3ad810d78c374f00e2cc07896e3 (patch) | |
tree | 157999170561312b21334a057a96254ec401449e /archiso | |
parent | a89e03fef0dcd18914f0545799635f0280df3c46 (diff) |
-rw-r--r-- | archiso/hooks/archiso | 4 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index 54c3223..abe9932 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -40,6 +40,7 @@ _mnt_sfs() { local img="${1}" local mnt="${2}" local img_fullname="${img##*/}" + local sfs_dev if [[ "${copytoram}" == "y" ]]; then msg -n ":: Copying squashfs image to RAM..." @@ -50,7 +51,8 @@ _mnt_sfs() { img="/run/archiso/copytoram/${img_fullname}" msg "done." fi - _mnt_dev "${img}" "${mnt}" "-r" + sfs_dev=$(losetup --find --show --read-only "${img}") + _mnt_dev "${sfs_dev}" "${mnt}" "-r" } # args: device, mountpoint, flags |