Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: ferran on April 02, 2020, 10:07:56 AM

Title: [SOLVED] how to configure tz in extlinux.conf
Post by: ferran on April 02, 2020, 10:07:56 AM
My local timezone is Madrid/Spain and I need to add this timezone into the file /proc/cmdline to set the local time with this chunk: 

tz=CET+1CEST+2,M3.5.0,M10.5.0/3

First I changed the permissions of /proc/cmdline with chmod 777. After I did edit with the tz chunk. Finally i did chmod 444 and I rebooted. When I rebooted I saw the /proc/cmdline erased the tz=... chunck from /proc/cmdline

Note: I think the tz=... for Madrid/Spain is correct... but now i'm not sure. I don't know  :-[

What can I do now?
Title: Re: how to configure tz in extlinux.conf
Post by: Rich on April 02, 2020, 10:11:18 AM
Hi ferran
The  /proc/cmdline  is a read only file that tells you what parameters were passed to the boot loader. Add:
Code: [Select]
tz=CET+1CEST+2,M3.5.0,M10.5.0/3to your boot loaders config file.
Title: Re: how to configure tz in extlinux.conf
Post by: ferran on April 02, 2020, 10:45:15 AM
Oh my god, i failed with the file. Actually i needed to add the tz= into /mnt/sda1/boot/extlinux/extlinux.conf

Done. That's OK. But when I rebooted in the console shows that:

Quote
udevadm settle -timeout of  5 seconds reached, the event queue contains:

/sys/devices/virtual/tty/tty59 (9866)

would be it a problem?
Title: Re: how to configure tz in extlinux.conf
Post by: ferran on April 03, 2020, 05:12:22 AM
I did a syntax mistake on the tz=... line and I just fixed the above problem.

@Rich this topic is [SOLVED] too  ;D
Title: Re: how to configure tz in extlinux.conf
Post by: Rich on April 03, 2020, 08:08:35 AM
Hi ferran
Marking as solved.

I did a syntax mistake on the tz=... line and I just fixed the above problem.
Please post the corrected syntax in case someone ever experiences a similar problem.
Title: Re: [SOLVED] how to configure tz in extlinux.conf
Post by: ferran on April 03, 2020, 12:46:12 PM
Of course, but the wrong line isn't here but on I wrote into the file. Nevertheless, I'm going to summarize the steps I took.

For the computer boot to assign the Madrid/Spain time zone I only had to add this piece of code inside the file /mnt/sda1/boot/extlinux/extlinux.conf

Code: [Select]
tz=CET+1CEST+2,M3.5.0,M10.5.0/3

If you lives in other side you could to get your timezone in:

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)

Only you need to get the first value from UTC Offset column and add to CET ; and the same from column UTC DST to CEST. In my case is +1 first, and +2 the second

The rest of the data refers to the 2 officially established time changes in both winter and summer.  In my  case is

M.3.5.0 (Month.Mars.5th week at 0 day =sunday 0 AM) for summer time
M.10.5.0/3 (Month.October. 5th week at 0 day=sunday /3 AM) for winter time

That's all  ;)
Title: Re: [SOLVED] how to configure tz in extlinux.conf
Post by: ferran on April 03, 2020, 12:49:07 PM
@Rich is much better to change the title of this post to:

[SOLVED]How to configure tz in extlinux.conf
Title: Re: [SOLVED] how to configure tz in extlinux.conf
Post by: Rich on April 03, 2020, 03:19:39 PM
Hi ferran
@Rich is much better to change the title of this post to:

[SOLVED]How to configure tz in extlinux.conf
Done.