Commit 1fc3a61b authored by Gerardo Exequiel Pozzi's avatar Gerardo Exequiel Pozzi
Browse files

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: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent 1d9d75be
......@@ -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
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment