Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
dracut
0312-40network-Do-not-print-message-about-tmp-n...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0312-40network-Do-not-print-message-about-tmp-net.ibft0.c.patch of Package dracut
From cc2bdf6b3bf0fcaa6597ee652c024027da24b501 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Thu, 13 Oct 2016 10:27:57 +0200 Subject: [PATCH 3/3] 40network: Do not print message about /tmp/net.ibft0.conf not found We need to check if the file /tmp/net.X.conf exists before trying to read from it; not doing so will create a warning during boot. References: bsc#1004437 Signed-off-by: Hannes Reinecke <hare@suse.com> --- modules.d/40network/ifup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index a4515d1..a684cba 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -506,10 +506,12 @@ for p in $(getargs ip=); do [ "$autoconf" = "ibft" ] && continue # skip if same configuration appears twice - while read line - do - [ "$line" = "$p" ] && continue 2 - done < /tmp/net.${netif}.conf + if [ -f /tmp/net.${netif}.conf ] ; then + while read line + do + [ "$line" = "$p" ] && continue 2 + done < /tmp/net.${netif}.conf + fi echo $p >> /tmp/net.${netif}.conf -- 2.6.6
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