diff --git a/initrd/bin/kexec-select-boot b/initrd/bin/kexec-select-boot index 793d6a79..ef155be4 100755 --- a/initrd/bin/kexec-select-boot +++ b/initrd/bin/kexec-select-boot @@ -173,7 +173,7 @@ scan_options() { kexec-parse-bls "$bootdir" "$i" "$bootdir/loader/entries" >> $option_file done fi - if [ ! -r $option_file ]; then + if [ ! -s $option_file ]; then die "Failed to parse any boot options" fi if [ "$unique" = 'y' ]; then diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index 0dbbb452..dbb0c3cb 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -209,7 +209,7 @@ set_default_boot_option() kexec-parse-bls "/boot" "$i" "/boot/loader/entries" >> $option_file done fi - [ ! -r $option_file ] \ + [ ! -s $option_file ] \ && whiptail_error_die "Failed to parse any boot options" # sort boot options