WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] how to configure tz in extlinux.conf  (Read 2325 times)

Offline ferran

  • Full Member
  • ***
  • Posts: 159
[SOLVED] how to configure tz in extlinux.conf
« 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?
« Last Edit: April 03, 2020, 03:17:12 PM by Rich »
TC CorePlus v.11.1 i686 & lots of coffe

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: how to configure tz in extlinux.conf
« Reply #1 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.
« Last Edit: April 03, 2020, 03:17:22 PM by Rich »

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: how to configure tz in extlinux.conf
« Reply #2 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?
« Last Edit: April 03, 2020, 03:18:38 PM by Rich »
TC CorePlus v.11.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: how to configure tz in extlinux.conf
« Reply #3 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
« Last Edit: April 03, 2020, 03:17:35 PM by Rich »
TC CorePlus v.11.1 i686 & lots of coffe

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: how to configure tz in extlinux.conf
« Reply #4 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.
« Last Edit: April 03, 2020, 03:17:54 PM by Rich »

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [SOLVED] how to configure tz in extlinux.conf
« Reply #5 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

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  ;)
« Last Edit: April 03, 2020, 03:18:06 PM by Rich »
TC CorePlus v.11.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [SOLVED] how to configure tz in extlinux.conf
« Reply #6 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
« Last Edit: April 03, 2020, 03:18:21 PM by Rich »
TC CorePlus v.11.1 i686 & lots of coffe

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [SOLVED] how to configure tz in extlinux.conf
« Reply #7 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.