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>2007-10-24 20:17:24 -0500
committerSimo Leone <simo@archlinux.org>2007-10-24 20:17:24 -0500
commita13a49c0df1283e7628fc5b28d2fe1dc289413cf (patch)
tree8a0a4c803db552192a7e54a98380aa26d4d13db3 /hooks/archiso
parentd359005795cf32fe9ce9f24708f41fee47365789 (diff)
Make _mnt_squashfs more generic
No longer assume the image is in the addons directory. Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'hooks/archiso')
-rw-r--r--hooks/archiso6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/archiso b/hooks/archiso
index 84c2241..c09d7bd 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -11,7 +11,7 @@ _mnt_squashfs()
{
msg "::: Adding new union branch: ${1}"
mkdir -p "/tmpfs/mnt/loop${LOOP_NUM}"
- if ! /bin/losetup "/dev/loop${LOOP_NUM}" ${addon_dir}/${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 " Couldn't mount all addons"
break
@@ -60,7 +60,7 @@ run_hook ()
addon_dir="${BOOT_MOUNT}/addons"
# always layer default configuration
- _mnt_squashfs "default-config.sqfs"
+ _mnt_squashfs "${addon_dir}/default-config.sqfs"
if [ -e "${addon_dir}/config" ]; then
msg ":: Mounting addons"
@@ -71,7 +71,7 @@ run_hook ()
if [ "${type}" = "bind" ]; then
_mnt_bind ${img} ${mountpoint}
elif [ "${type}" = "squashfs" ]; then
- _mnt_squashfs ${img}
+ _mnt_squashfs "${addon_dir}/${img}"
fi
done < ${addon_dir}/config
fi