Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
dracut.4966
0013-mkinitrd-suse-do-not-update-bootloader-if-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0013-mkinitrd-suse-do-not-update-bootloader-if-no-kernel-.patch of Package dracut.4966
From 6e2410d3e9403b030125e8d7f523de341466d658 Mon Sep 17 00:00:00 2001 From: Thomas Renninger <trenn@suse.de> Date: Mon, 7 Apr 2014 16:23:49 +0200 Subject: [PATCH] mkinitrd-suse: do not update bootloader if no kernel was found When no kernel is found mkinitrd-suse should exit without updating the bootloader. References: bnc#858268 Signed-off-by: Hannes Reinecke <hare@suse.de> --- mkinitrd-suse.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mkinitrd-suse.sh b/mkinitrd-suse.sh index d20270a..b31ea36 100755 --- a/mkinitrd-suse.sh +++ b/mkinitrd-suse.sh @@ -291,7 +291,9 @@ while (($# > 0)); do done [[ $targets && $kernels ]] || default_kernel_images -[[ $targets && $kernels ]] || (error "No kernel found in $boot_dir" && usage) +if [[ ! $targets || ! $kernels ]];then + error "No kernel found in $boot_dir" +fi # We can have several targets/kernels, transform the list to an array targets=( $targets ) -- 1.8.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor