From 1296acc7014092eb7765e3216ac5b18b4eb13db5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 17 Mar 2016 10:05:00 +0000 Subject: [PATCH] appliance: Quiet some warnings about missing files. Try to make the appliance script as quiet as possible along the fast path. (cherry picked from commit 5897b3bbad8c234be2b20685c7714628ea5ec5a0) --- appliance/init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appliance/init b/appliance/init index ff8f5df..3b76486 100755 --- a/appliance/init +++ b/appliance/init @@ -83,9 +83,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.7.4