diff --git a/90zfsbootmenu/zfsbootmenu-lib.sh b/90zfsbootmenu/zfsbootmenu-lib.sh index edee1777b..d775854e1 100755 --- a/90zfsbootmenu/zfsbootmenu-lib.sh +++ b/90zfsbootmenu/zfsbootmenu-lib.sh @@ -150,12 +150,11 @@ kexec_kernel() { umount_zfs ${fs} - zpool export -a if ! [ $? -eq 0 ]; then emergency_shell "unable to export pools" fi - kexec -e + kexec -e -i } # arg1: snapshot name diff --git a/90zfsbootmenu/zfsbootmenu-parse-commandline.sh b/90zfsbootmenu/zfsbootmenu-parse-commandline.sh index b262577e4..d888b2b47 100755 --- a/90zfsbootmenu/zfsbootmenu-parse-commandline.sh +++ b/90zfsbootmenu/zfsbootmenu-parse-commandline.sh @@ -21,9 +21,9 @@ fi # Force import pools only when explicitly told to do so if getargbool 0 force_import ; then info "ZFSBootMenu: Enabling force import of ZFS pools" - import_args="-f -N" + import_args="-o readonly=on -f -N" else - import_args="-N" + import_args="-o readonly=on -N" fi wait_for_zfs=0