[Pkg-uml-commit] r182 - trunk/src/rootstrap/modules
Mattia Dongili
malattia at costa.debian.org
Wed Aug 30 19:35:59 UTC 2006
Author: malattia
Date: 2006-08-30 19:35:59 +0000 (Wed, 30 Aug 2006)
New Revision: 182
Modified:
trunk/src/rootstrap/modules/uml
Log:
setup the timezone based on the host current settings
Modified: trunk/src/rootstrap/modules/uml
===================================================================
--- trunk/src/rootstrap/modules/uml 2006-08-30 19:16:28 UTC (rev 181)
+++ trunk/src/rootstrap/modules/uml 2006-08-30 19:35:59 UTC (rev 182)
@@ -19,6 +19,14 @@
echo "# Disable hwclock at startup/shutdown" >> $TARGET/etc/default/rcS
echo "HWCLOCKACCESS=no" >> $TARGET/etc/default/rcS
+# setup the timezone, the same as the host
+[ ! -e $HOST/etc/timezone ] || TARGET_TIMEZONE="$(cat $HOST/etc/timezone)"
+
+if [ -e "$TARGET/usr/share/zoneinfo/$TARGET_TIMEZONE" ] ; then
+ cp $TARGET/usr/share/zoneinfo/$TARGET_TIMEZONE $TARGET/etc/localtime
+ echo $TARGET_TIMEZONE > $TARGET/etc/timezone
+fi
+
# kernel modules
mkdir -p $TARGET/lib/modules
More information about the Pkg-uml-commit
mailing list