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>
This commit is contained in:
parent
1d9d75beb4
commit
1fc3a61b75
@ -141,16 +141,10 @@ archiso_mount_handler() {
|
|||||||
fi
|
fi
|
||||||
done < "${isomounts}"
|
done < "${isomounts}"
|
||||||
|
|
||||||
# Bind our bootmnt dir into the live system
|
if [ "${copytoram}" = "y" ]; then
|
||||||
_mnt_bind /bootmnt "${newroot}/bootmnt"
|
/bin/umount /bootmnt
|
||||||
|
else
|
||||||
if [ "${copytoram}" != "y" ]; then
|
_mnt_bind /bootmnt "${newroot}/bootmnt"
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user