From 38d828f7493b5facf3123075c88397278dd1d5cb Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Tue, 17 Nov 2009 02:57:51 -0300 Subject: Only lock the optical drive if mounted from this Check if FSTYPE is iso9660 or UDF, and only in this case look the optical drive. Signed-off-by: Gerardo Exequiel Pozzi --- archiso/hooks/archiso | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'archiso/hooks') 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 -- cgit v1.2.3-70-g09d2