Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
dracut.4966
0161-Fix-error-message-when-there-are-no-intern...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0161-Fix-error-message-when-there-are-no-internal-kernel-.patch of Package dracut.4966
From 044c4999b7791f40c27bb5f92b76f67bbd6cc18a Mon Sep 17 00:00:00 2001 From: Thomas Renninger <trenn@suse.de> Date: Wed, 24 Sep 2014 17:35:28 +0200 Subject: Fix error message when there are no internal kernel commandline parameters Otherwise you could get messages like that: Stored kernel commandline: /usr/bin/dracut: line 1559: /var/tmp/initramfs.psHn4a/etc/cmdline.d/*.conf: No such file or directory Signed-off-by: Thomas Renninger <trenn@suse.de> --- dracut.sh | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dracut.sh b/dracut.sh index c301138..eab56f5 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1564,10 +1564,14 @@ if ! ( echo $PARMS_TO_STORE > $initdir/lib/dracut/build-parameter.txt ); then fi if [[ $hostonly_cmdline ]] ; then - dinfo "Stored kernel commandline:" - for conf in $initdir/etc/cmdline.d/*.conf ; do - dinfo "$(< $conf)" - done + if [ -d $initdir/etc/cmdline.d ];then + dinfo "Stored kernel commandline:" + for conf in $initdir/etc/cmdline.d/*.conf ; do + dinfo "$(< $conf)" + done + else + dinfo "No dracut internal kernel commandline stored in initrd" + fi fi rm -f -- "$outfile" dinfo "*** Creating image file ***" -- 1.7.6.1
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