summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archiso/hooks/archiso8
1 files changed, 5 insertions, 3 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index cf13e3d..336a014 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -124,9 +124,11 @@ run_hook ()
# Bind our bootmnt dir into the live system
_mnt_bind /bootmnt /bootmnt
- if [ -d /proc/sys/dev/cdrom ]; then
- echo 0 > /proc/sys/dev/cdrom/lock
- echo 0 > /proc/sys/dev/cdrom/autoeject
+ if [ "${FSTYPE}" = "iso9660" -o "${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 [ "${break}" = "y" ]; then