diff options
-rwxr-xr-x | draklive | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -131,12 +131,12 @@ sub build_grub_cfg_raw { "kernel $grub_part" . $boot . "/vmlinuz " . get_default_append($live, $opts) . if_($cmdline, " $cmdline"), if_($initrd, "initrd " . $boot . $initrd); } group_by2('' => '', @{$live->{system}{boot_entries}})), - if_(defined $opts->{oem_rescue_idx}, + ($live->{oem_rescue} && defined $opts->{oem_rescue_idx} ? ( #- FIXME: factorize with above, build_grub_cfg_entry($media) "title " . $live->{oem_rescue}{media}{title}, "kernel (hd0,$opts->{oem_rescue_idx})" . $boot . "/vmlinuz " . $live->{oem_rescue}{append}, "initrd (hd0,$opts->{oem_rescue_idx})" . $boot . $media->get_initrd_path, - ), + ) : ()), "", ); } |