Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/hooks
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-07-08 03:33:40 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-07-08 03:44:43 -0300
commitba638480ce06a6fbc4c81a79349c832afe0e3780 (patch)
treeb1cd50258fd25038a21e28ac96f4fc7c4bfe458d /archiso/hooks
parent9257e34ca255a7ca17e0a9e0b828da02041ad2f7 (diff)
archiso hook: umount /bootmnt if copytoram=y
More generic way than current method, and fix if logic (inverted). Takes the same actions independent of medium (disk/cdrom). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/hooks')
-rw-r--r--archiso/hooks/archiso14
1 files changed, 4 insertions, 10 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index ae98231..c7a6829 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -141,16 +141,10 @@ archiso_mount_handler() {
fi
done < "${isomounts}"
- # Bind our bootmnt dir into the live system
- _mnt_bind /bootmnt "${newroot}/bootmnt"
-
- if [ "${copytoram}" != "y" ]; then
- if [ "${FSTYPE}" = "iso9660" ] || [ "${FSTYPE}" = "udf" ]; then
- if [ -d /proc/sys/dev/cdrom ]; then
- echo 0 > /proc/sys/dev/cdrom/lock
- echo 0 > /proc/sys/dev/cdrom/autoeject
- fi
- fi
+ if [ "${copytoram}" = "y" ]; then
+ /bin/umount /bootmnt
+ else
+ _mnt_bind /bootmnt "${newroot}/bootmnt"
fi
}