[Libguestfs] [PATCH 3/3] appliance: Quiet some warnings about missing files.

Richard W.M. Jones rjones at redhat.com
Thu Mar 17 10:08:43 UTC 2016


Try to make the appliance script as quiet as possible along
the fast path.
---
 appliance/init | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/appliance/init b/appliance/init
index 21e7ab8..f6fe9b9 100755
--- a/appliance/init
+++ b/appliance/init
@@ -81,9 +81,11 @@ fi
 
 # Disk optimizations.
 # Increase the SCSI timeout so we can read remote images.
+shopt -s nullglob
 for f in /sys/block/sd*/device/timeout; do echo 300 > $f; done
 # https://access.redhat.com/site/solutions/5427
 for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do echo noop > $f; done
+shopt -u nullglob
 
 # Update the system clock.
 hwclock -u -s
-- 
2.5.0




More information about the Libguestfs mailing list