Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-05 10:17:34 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-18 22:09:17 -0600
commit201d8c03fe19c6e32e2a272ea240143887d20b8c (patch)
treeb5b7d101e74f826c58bb96da5de09352d9b271db /archiso
parent3a1fc5911c3f760ac92d49440f96a04470e457f6 (diff)
Change mounts file to isomounts
Also check for this file instead of the root image on mount, to make images more generic Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso')
-rw-r--r--archiso/hooks/archiso8
1 files changed, 4 insertions, 4 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index 60e14bf..46ed43f 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -53,7 +53,7 @@ run_hook ()
msg ":: Scanning cd drives..."
for cdrom in /dev/hd[a-z] /dev/sr[0-9]* /dev/scd[a-z] /dev/sg[0-9]*; do
if mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then
- if [ -e "${bootmnt}/root-image.sqfs" ]; then
+ if [ -e "${bootmnt}/isomounts" ]; then
found=1
msg "${cdrom}"
break
@@ -69,7 +69,7 @@ run_hook ()
for usb in /dev/sd[a-z][0-9]; do
if mount -r -t vfat "${usb}" ${bootmnt} >/dev/null 2>&1 ||\
mount -r -t ext2 "${usb}" ${bootmnt} >/dev/null 2>&1; then
- if [ -e "${bootmnt}/root-image.sqfs" ]; then
+ if [ -e "${bootmnt}/isomounts" ]; then
found=1
msg "${usb}"
break
@@ -102,7 +102,7 @@ run_hook ()
/bin/mount -t unionfs -o dirs=/tmpfs=rw none /real_root
export LOOP_NUM="0"
- if [ -e "/mounts" ]; then
+ if [ -e "/isomounts" ]; then
msg ":: Mounting images"
while read img imgarch mountpoint type; do
# check if this line is a comment (starts with #)
@@ -115,7 +115,7 @@ run_hook ()
elif [ "${type}" = "squashfs" ]; then
_mnt_squashfs "${img}"
fi
- done < /mounts
+ done < /isomounts
else
msg ":: No mountable images found"
fi