Blame 0002-Revert-base-setup-correct-system-time-and-time-zone-.patch

Harald Hoyer 650a10
From d27cd4dfdd51c7f5178c5f4cb8f5bf4668228995 Mon Sep 17 00:00:00 2001
Harald Hoyer 650a10
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 650a10
Date: Wed, 31 Jul 2013 15:55:13 +0200
Harald Hoyer 650a10
Subject: [PATCH] Revert "base: setup correct system time and time zone in
Harald Hoyer 650a10
 initrd"
Harald Hoyer 650a10
Harald Hoyer 650a10
This reverts commit 77364fd6bb01ea184db73b1a5ad05da984752293.
Harald Hoyer 650a10
Harald Hoyer 650a10
Too many problems with adjtime in the initramfs
Harald Hoyer 650a10
Harald Hoyer 650a10
https://bugzilla.redhat.com/show_bug.cgi?id=981617
Harald Hoyer 650a10
---
Harald Hoyer 650a10
 modules.d/99base/init.sh         |  9 ---------
Harald Hoyer 650a10
 modules.d/99base/module-setup.sh | 11 -----------
Harald Hoyer 650a10
 2 files changed, 20 deletions(-)
Harald Hoyer 650a10
Harald Hoyer 650a10
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
Harald Hoyer 650a10
index 0e4cac5..ae73fd2 100755
Harald Hoyer 650a10
--- a/modules.d/99base/init.sh
Harald Hoyer 650a10
+++ b/modules.d/99base/init.sh
Harald Hoyer 650a10
@@ -48,15 +48,6 @@ if ! ismounted /dev; then
Harald Hoyer 650a10
     exit 1
Harald Hoyer 650a10
 fi
Harald Hoyer 650a10
 
Harald Hoyer 650a10
-# setup system time
Harald Hoyer 650a10
-if [ -f /etc/adjtime ]; then
Harald Hoyer 650a10
-    if strstr "$(cat /etc/adjtime)" LOCAL; then
Harald Hoyer 650a10
-        hwclock --hctosys --localtime
Harald Hoyer 650a10
-    else
Harald Hoyer 650a10
-        hwclock --hctosys --utc
Harald Hoyer 650a10
-    fi
Harald Hoyer 650a10
-fi
Harald Hoyer 650a10
-
Harald Hoyer 650a10
 # prepare the /dev directory
Harald Hoyer 650a10
 [ ! -h /dev/fd ] && ln -s /proc/self/fd /dev/fd >/dev/null 2>&1
Harald Hoyer 650a10
 [ ! -h /dev/stdin ] && ln -s /proc/self/fd/0 /dev/stdin >/dev/null 2>&1
Harald Hoyer 650a10
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
Harald Hoyer 650a10
index c9ee838..842dde6 100755
Harald Hoyer 650a10
--- a/modules.d/99base/module-setup.sh
Harald Hoyer 650a10
+++ b/modules.d/99base/module-setup.sh
Harald Hoyer 650a10
@@ -29,17 +29,6 @@ install() {
Harald Hoyer 650a10
     egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo  'root:x:0:0::/root:/bin/sh' >> "$initdir/etc/passwd"
Harald Hoyer 650a10
     egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
Harald Hoyer 650a10
 
Harald Hoyer 650a10
-    # install /etc/adjtime and time zone data
Harald Hoyer 650a10
-    if [[ $hostonly ]]; then
Harald Hoyer 650a10
-        dracut_install -o /etc/adjtime \
Harald Hoyer 650a10
-                          /etc/localtime
Harald Hoyer 650a10
-
Harald Hoyer 650a10
-        # Our init.sh script needs hwclock to set system time
Harald Hoyer 650a10
-        if ! dracut_module_included "systemd"; then
Harald Hoyer 650a10
-            dracut_install -o hwclock
Harald Hoyer 650a10
-        fi
Harald Hoyer 650a10
-    fi
Harald Hoyer 650a10
-
Harald Hoyer 650a10
     # install our scripts and hooks
Harald Hoyer 650a10
     inst_script "$moddir/init.sh" "/init"
Harald Hoyer 650a10
     inst_script "$moddir/initqueue.sh" "/sbin/initqueue"