LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 09-01-2019, 09:36 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 371
Blog Entries: 51

Rep: Reputation: 47
bedrock: bedrock poki remains on UTC no matter what


I just did a fresh bedrock Poki install, in Qemu. Hijacked a buildroot. Added a void strata.

Bedrock is on UTF no matter what. Made a new /etc/adjtime and populated it so as to use LOCAL time. Edited the /bedrock/etc/ to tell it Eastern time (/usr/share/zoneinfo/America/New_York). Rebooted.

Bedrock is still on the wrong time. Typing "date" indicates that the machine is still on UTC.

How do I fix this?
 
Old 09-02-2019, 07:02 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 112

Rep: Reputation: Disabled
  1. What is your exact `timezone` line under `[locale]` in `bedrock.conf?`
  2. After setting what sounds like it should be `timezone = America/New_York` did you run `brl apply` (as root)?
  3. What does `readlink /etc/localtime` print?
  4. What does `readlink /bedrock/run/localtime` print?
  5. What does `tail -n1 /bedrock/cross/zoneinfo/America/New_York` print?
  6. What does `tail -n1 /bedrock/strata/*/usr/share/zoneinfo/America/New_York` print?
  7. Install `strace` if you don't have it already, then `strat -r $(brl which strace) strace -tvf -s999 -o/tmp/log date` and provide the resulting contents of `/tmp/log`
 
Old 09-02-2019, 03:19 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 371

Original Poster
Blog Entries: 51

Rep: Reputation: 47
1.
timezone = /usr/share/zoneinfo/America/New_York

2.
Not initially. Have since done so and rebooted.

3.
/bedrock/run/localtime

4.
/bedrock/cross/zoneinfo//usr/share/zoneinfo/America/New_York

5.
EST5EDT,M3.2.0,M11.1.0

6.
EST5EDT,M3.2.0,M11.1.0

7. (installed from void strata)
Code:
4958  20:04:42 execve("/usr/sbin/date", ["date"], ["USER=root", "SHLVL=1", "HOME=/root", "PAGER=/bin/more", "PS1=# ", "INFOPATH=/bedrock/share/info:/usr/local/share/info:/usr/share/info", "LOGNAME=root", "TERMINFO_DIRS=/usr/local/share/terminfo:/usr/share/terminfo:/bedrock/cross/terminfo", "TERM=vt100", "PATH=/bedrock/bin:/usr/local/sbin:/usr/local/bin:/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C", "SHELL=/bin/sh", "PWD=/root", "XDG_DATA_DIRS=/usr/local/share:/usr/share", "MANPATH=/bedrock/share/man:/usr/local/share/man:/usr/share/man", "EDITOR=/bin/vi", "BEDROCK_RESTRICT=1"]) = 0
4958  20:04:42 brk(NULL)                = 0x55e661894000
4958  20:04:42 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/tls/x86_64/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/tls/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/tls/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/tls", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/x86_64/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 stat("/usr/lib/x86_64", 0x7fff91933500) = -1 ENOENT (No such file or directory)
4958  20:04:42 openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
4958  20:04:42 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0o\2\0\0\0\0\0@\0\0\0\0\0\0\0\310\237\30\1\0\0\0\0\0\0\0\0@\08\0\f\0@\0I\0H\0\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\240\2\0\0\0\0\0\0\240\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0\0\22\31\0\0\0\0\0\0\22\31\0\0\0\0\0\0\22\31\0\0\0\0\0\36\0\0\0\0\0\0\0\36\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0HJ\2\0\0\0\0\0HJ\2\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\5\0\0\0\0P\2\0\0\0\0\0\0P\2\0\0\0\0\0\0P\2\0\0\0\0\0\215\215\24\0\0\0\0\0\215\215\24\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\4\0\0\0\0\340\26\0\0\0\0\0\0\340\26\0\0\0\0\0\0\340\26\0\0\0\0\0\241\224\4\0\0\0\0\0\241\224\4\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\6\0\0\0\300\203\33\0\0\0\0\0\300\223\33\0\0\0\0\0\300\223\33\0\0\0\0\0\260P\0\0\0\0\0\0\370\217\0\0\0\0\0\0\0\20\0\0\0\0\0\0\2\0\0\0\6\0\0\0\300\251\33\0\0\0\0\0\300\271\33\0\0\0\0\0\300\271\33\0\0\0\0\0\360\1\0\0\0\0\0\0\360\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\340\2\0\0\0\0\0\0\340\2\0\0\0\0\0\0\340\2\0\0\0\0\0\0D\0\0\0\0\0\0\0D\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\7\0\0\0\4\0\0\0\300\203\33\0\0\0\0\0\300\223\33\0\0\0\0\0\300\223\33\0\0\0\0\0\20\0\0\0\0\0\0\0\220\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0 \22\31\0\0\0\0\0 \22\31\0\0\0\0\0 \22\31\0\0\0\0\0\354b\0\0\0\0\0\0\354b\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0R\345td\4\0\0\0\300\203\33\0\0\0\0\0\300\223\33\0\0\0\0\0\300\223\33\0\0\0\0\0@,\0\0\0\0\0\0@,\0\0\0\0\0\0\1\0\0\0\0\0\0\0\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\3\5\346\373\v\303\323qfn\315\v\263h\372b\254\10(\233\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\371\3\0\0?\t\0\0\361\1\0\0006\3\0\0\1\t\0\08\4\0\0", 832) = 832
4958  20:04:42 fstat(3, {st_dev=makedev(0xfd, 0x2), st_ino=706, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=35936, st_size=18395656, st_atime=1567387497 /* 2019-09-02T01:24:57.483062783+0000 */, st_atime_nsec=483062783, st_mtime=1565703517 /* 2019-08-13T13:38:37+0000 */, st_mtime_nsec=0, st_ctime=1567387494 /* 2019-09-02T01:24:54.365062783+0000 */, st_ctime_nsec=365062783}) = 0
4958  20:04:42 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17b583f000
4958  20:04:42 mmap(NULL, 1844152, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f17b567c000
4958  20:04:42 mprotect(0x7f17b56a1000, 1654784, PROT_NONE) = 0
4958  20:04:42 mmap(0x7f17b56a1000, 1347584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f17b56a1000
4958  20:04:42 mmap(0x7f17b57ea000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16e000) = 0x7f17b57ea000
4958  20:04:42 mmap(0x7f17b5835000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b8000) = 0x7f17b5835000
4958  20:04:42 mmap(0x7f17b583b000, 13240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f17b583b000
4958  20:04:42 close(3)                 = 0
4958  20:04:42 arch_prctl(ARCH_SET_FS, 0x7f17b5840580) = 0
4958  20:04:42 mprotect(0x7f17b5835000, 12288, PROT_READ) = 0
4958  20:04:42 mprotect(0x55e65fbab000, 8192, PROT_READ) = 0
4958  20:04:42 mprotect(0x7f17b5869000, 4096, PROT_READ) = 0
4958  20:04:42 brk(NULL)                = 0x55e661894000
4958  20:04:42 brk(0x55e6618b5000)      = 0x55e6618b5000
4958  20:04:42 openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
4958  20:04:42 fstat(1, {st_dev=makedev(0, 0x6), st_ino=9297, st_mode=S_IFCHR|0600, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_rdev=makedev(0x5, 0x1), st_atime=1567454682 /* 2019-09-02T20:04:42.874094111+0000 */, st_atime_nsec=874094111, st_mtime=1567454682 /* 2019-09-02T20:04:42.874094111+0000 */, st_mtime_nsec=874094111, st_ctime=1567453835 /* 2019-09-02T19:50:35.988094111+0000 */, st_ctime_nsec=988094111}) = 0
4958  20:04:42 ioctl(1, TCGETS, {c_iflags=0x1500, c_oflags=0x5, c_cflags=0xcbf, c_lflags=0xa3b, c_line=0, c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x0a\x12\x0f\x17\x16\x00\x00\x00"}) = 0
4958  20:04:42 write(1, "Mon Sep  2 20:04:42 UTC 2019\n", 29) = 29
4958  20:04:42 close(1)                 = 0
4958  20:04:42 close(2)                 = 0
4958  20:04:42 exit_group(0)            = ?
4958  20:04:42 +++ exited with 0 +++
 
Old 09-02-2019, 03:44 PM   #4
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 112

Rep: Reputation: Disabled
Quote:
Originally Posted by jr_bob_dobbs View Post
1.
timezone = /usr/share/zoneinfo/America/New_York
There's the problem right there. That's not a valid value for the field. There is a comment directly above the `timezone` field explaining how to use it, and it uses your timezone as an example use case:

Code:
#
# The Olson timezone.  For example:
#
#     timezone = America/New_York
#
# At least one stratum should provide an Olson database file at
#
#     /usr/share/zoneinfo/<timezone>
#
# For example, for America/New_York there should be a file at
#
#     /usr/share/zoneinfo/America/New_York
#
timezone =
I don't know how to explain it any better than it already does there.
 
1 members found this post helpful.
Old 09-02-2019, 10:54 PM   #5
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 371

Original Poster
Blog Entries: 51

Rep: Reputation: 47
D'oh! I am a dumbass. The time is now correct. Thank you.
 
Old 09-03-2019, 05:10 AM   #6
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 112

Rep: Reputation: Disabled
Happy to help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] UTC string shows "PM UTC" Andy Alt Debian 9 06-28-2019 07:58 AM
poki is cool jr_bob_dobbs Bedrock Linux 1 01-06-2019 03:04 PM
[SOLVED] Centos7, invalid offset for UTC for Sweden, says UTC+00 Basher52 CentOS 14 02-09-2018 10:10 PM
[SOLVED] bedrock not using brsh.conf, dropped to bedrock's /bin/sh Siljrath Linux - Distributions 2 08-25-2014 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration