mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0040-appliance-init-Don-t-run-hwclock-command.patch

e76f14
From 28b8442ec5aaf87b7937a1753c13af6f1ab6c8e1 Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Sat, 19 Mar 2016 20:13:49 +0000
e76f14
Subject: [PATCH] appliance: init: Don't run hwclock command.
e76f14
e76f14
This command alone took 0.3 seconds which is about 10% of the current
e76f14
launch time.  It appears to be unnecessary.
e76f14
e76f14
This reverts commit 508f1ee87e816bf6b6fc8e629ccbb2d61a971169.
e76f14
e76f14
(cherry picked from commit f36ba3888654b55a25158edd23a40fd0e28545a8)
e76f14
---
e76f14
 appliance/init | 3 ---
e76f14
 1 file changed, 3 deletions(-)
e76f14
e76f14
diff --git a/appliance/init b/appliance/init
e76f14
index 6793d57..4407bbb 100755
e76f14
--- a/appliance/init
e76f14
+++ b/appliance/init
e76f14
@@ -109,9 +109,6 @@ for f in /sys/block/sd*/device/timeout; do echo 300 > $f; done
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
 # Set up the network.
e76f14
 ip addr add 127.0.0.1/8 brd + dev lo scope host
e76f14
 ip link set dev lo up
e76f14
-- 
aa0300
2.7.4
e76f14