Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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?
-
Hi ferran
The /proc/cmdline is a read only file that tells you what parameters were passed to the boot loader. Add:
tz=CET+1CEST+2,M3.5.0,M10.5.0/3
to your boot loaders config file.
-
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:
udevadm settle -timeout of 5 seconds reached, the event queue contains:
/sys/devices/virtual/tty/tty59 (9866)
would be it a problem?
-
I did a syntax mistake on the tz=... line and I just fixed the above problem.
@Rich this topic is [SOLVED] too ;D
-
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.
-
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
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 ;)
-
@Rich is much better to change the title of this post to:
[SOLVED]How to configure tz in extlinux.conf
-
Hi ferran
@Rich is much better to change the title of this post to:
[SOLVED]How to configure tz in extlinux.conf
Done.