mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0031-appliance-Quiet-some-warnings-about-missing-files.patch

e76f14
From 1296acc7014092eb7765e3216ac5b18b4eb13db5 Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Thu, 17 Mar 2016 10:05:00 +0000
e76f14
Subject: [PATCH] appliance: Quiet some warnings about missing files.
e76f14
e76f14
Try to make the appliance script as quiet as possible along
e76f14
the fast path.
e76f14
e76f14
(cherry picked from commit 5897b3bbad8c234be2b20685c7714628ea5ec5a0)
e76f14
---
e76f14
 appliance/init | 2 ++
e76f14
 1 file changed, 2 insertions(+)
e76f14
e76f14
diff --git a/appliance/init b/appliance/init
e76f14
index ff8f5df..3b76486 100755
e76f14
--- a/appliance/init
e76f14
+++ b/appliance/init
e76f14
@@ -83,9 +83,11 @@ fi
e76f14
 
e76f14
 # Disk optimizations.
e76f14
 # Increase the SCSI timeout so we can read remote images.
e76f14
+shopt -s nullglob
e76f14
 for f in /sys/block/sd*/device/timeout; do echo 300 > $f; done
e76f14
 # https://access.redhat.com/site/solutions/5427
e76f14
 for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do echo noop > $f; done
e76f14
+shopt -u nullglob
e76f14
 
e76f14
 # Update the system clock.
e76f14
 hwclock -u -s
e76f14
-- 
e76f14
1.8.3.1
e76f14