[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Tested fix Re: [debian-knoppix] Changing GTK Theme and Time zone



I now have a HD installed knoppix (my roommate's box), and
I've tested a fix to the timezone problem... essentially, it
knoppix-autoconfig doesn't do a final timezone determinatation
until AFTER it's messed with the hardware clock (oops).

Patch below:
The writing of the localtime file (probably) needs to wait until
after the root is remounted rw, but the determination can occur
earlier.

After this, it should work just fine with tz=America/Vancouver
on the boot line, in /boot/sysinit/sysinit.cfg
or in /etc/lilo.conf
 (depending on how you're booting)

==========================================================
--- knoppix-autoconfig  2004/11/15 21:45:39     1.1
+++ knoppix-autoconfig  2004/11/15 21:46:52
@@ -469,6 +469,8 @@
 checkbootparam utc >/dev/null 2>&1 && UTC="-u"
 checkbootparam gmt >/dev/null 2>&1 && UTC="-u"

+KTZ="$(getbootparam tz 2>/dev/null)"
+[ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
 # hwclock uses the TZ variable
 export TZ
 hwclock $UTC -s
@@ -504,8 +506,6 @@
        (echo "$1" > /etc/sysconfig/progress) &
 }

-KTZ="$(getbootparam tz 2>/dev/null)"
-[ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
 rm -f /etc/localtime
 cp "/usr/share/zoneinfo/$TZ" /etc/localtime
=========================================================


Rajkumar S wrote:
Hi,

Kester Habermann wrote:

On Thu, Sep 30, 2004 at 11:44:37PM -0400, Rajkumar S wrote:

I am so sorry, I forgot one important info, mine is a hd installed knoppix, and I am not running from CD.

/me stands in the corner for 5 minutes :(



try typing tzconfig as root.


That's what I tried first, but it does not help :(

raj@swathi:~$ tzconfig
Your current time zone is set to Asia/Calcutta
Do you want to change that? [n]:
Your time zone will not be changed

raj@swathi:~$ date
Fri Oct  1 08:40:07 EDT 2004

raj


------------------------------------------------------------------------

This is the debian-knoppix mailinglist at linuxtag.org. Please use www.linuxtag.org/wws/lists to maintain your account information.


--
Stephen Samuel +1(604)876-0426             samnospam@bcgreen.com
		   http://www.bcgreen.com/
   Powerful committed communication. Transformation touching
     the jewel within each person and bringing it to light.


Reply to: