- Do not show usage error when no kernel was found.
This may happen several times at package installation time and floods the logs. Modify dracut_do_not_update_booloader_if_no_kernel_is_found.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=93
This commit is contained in:
parent
8af4f371a2
commit
b60d65ff3b
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 31 13:49:27 UTC 2014 - trenn@suse.de
|
||||
|
||||
- Do not show usage error when no kernel was found.
|
||||
This may happen several times at package installation time and floods
|
||||
the logs.
|
||||
Modify dracut_do_not_update_booloader_if_no_kernel_is_found.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 14 14:10:06 UTC 2014 - trenn@suse.de
|
||||
|
||||
|
@ -2,14 +2,13 @@ Index: dracut-034/mkinitrd-suse.sh
|
||||
===================================================================
|
||||
--- dracut-034.orig/mkinitrd-suse.sh
|
||||
+++ dracut-034/mkinitrd-suse.sh
|
||||
@@ -291,7 +291,10 @@ while (($# > 0)); do
|
||||
@@ -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"
|
||||
+ usage -n
|
||||
+fi
|
||||
|
||||
# We can have several targets/kernels, transform the list to an array
|
||||
|
Loading…
Reference in New Issue
Block a user