Re: buster netinst timezone
On Fri 09 Aug 2019 at 21:38:23 (+0000), Russell L. Harris wrote:
> The netinst cd image for Buster 10.0.0 does not offer a UTC option for
> English -> United States.
>
> This is a critical bug; every installer without exception should offer UTC.
>
> Is there a work-around, so that files written during the
> installation process have the correct datestamp?
>
> One suggestion was to select English -> Great Britain, but this
> possibly has other consequences regarding locale settings.
It's not clear to me why you couldn't select this, nor why your files
would have the wrong timestamp. Here's some output from a buster
installation on acer. As it was my first, I kept the typescript.
Current output from acer itself:
✄✄✄✄✄✄✄✄
acer!david 22:24:52 ~ $ cat /etc/debian_version
10.0
acer!david 22:24:55 ~ $ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
acer!david 22:24:57 ~ $ ls -l /var/log/installer/
total 864
drwxr-xr-x 2 root root 4096 Jul 12 11:48 cdebconf
-rw-r--r-- 1 root root 33297 Jul 12 11:48 hardware-summary
-rw-r--r-- 1 root root 152 Jul 12 11:48 lsb-release
-rw-r----- 1 root adm 250698 Jul 12 11:48 partman
-rw-r--r-- 1 root root 76445 Jul 12 11:48 status
-rw-r----- 1 root adm 507777 Jul 12 11:48 syslog
acer!david 22:24:59 ~ $ TZ=UTC0 ls -l /var/log/installer/
total 864
drwxr-xr-x 2 root root 4096 Jul 12 16:48 cdebconf
-rw-r--r-- 1 root root 33297 Jul 12 16:48 hardware-summary
-rw-r--r-- 1 root root 152 Jul 12 16:48 lsb-release
-rw-r----- 1 root adm 250698 Jul 12 16:48 partman
-rw-r--r-- 1 root root 76445 Jul 12 16:48 status
-rw-r----- 1 root adm 507777 Jul 12 16:48 syslog
acer!david 22:25:00 ~ $
✄✄✄✄✄✄✄✄
And here are clock-y extracts from the typescript of installing
buster onto acer last month (captured on wren via ssh). The
box you want is the fourth (I select Central):
✄✄✄✄✄✄✄✄
Script started on Fri 12 Jul 2019 11:12:26 AM CDT
(This is /home/david/.bashrc 2019 July 10)
(This is /home/david/.bash-1-wren 2019 January 26 on stretch)
(This is /home/david/.bash-u-usbs 2019 June 01)
(This is /home/david/.bash-t-transfers 2019 June 17 enp1s0)
(This is /home/david/.bash-w-web 2019 June 19)
(This is /home/david/.bash-9-wren 2019 June 13 @1600x900)
wren!david 11:15:26 ~ $ installer-on 192.168.1.201
The authenticity of host '192.168.1.201 (192.168.1.201)' can't be established.
RSA key fingerprint is SHA256:YFp6hlF+Et+KjrJFJZHVnf23G+HORSXMY9Hr3OaGubc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.201' (RSA) to the list of known hosts.
installer@192.168.1.201's password:
/var/run/utmp: No such file or directory
┌────────────────────────┤ [!!] Configuring d-i ├─────────────────────────┐
│ │
│ This is the network console for the Debian installer. From here, you │
│ may start the Debian installer, or execute an interactive shell. │
│ │
│ To return to this menu, you will need to log in again. │
│ │
│ Network console option: │
│ │
│ Start installer │
│ Start installer (expert mode) │
│ Start shell │
│ │
└─────────────────────────────────────────────────────────────────────────┘
[…]
┌───────────────────┤ [?] Configure the clock ├────────────────────┐
│ │
│ The Network Time Protocol (NTP) can be used to set the system's │
│ clock. The installation process works best with a correctly set │
│ clock. │
│ │
│ Set the clock using NTP? │
│ │
│ <Yes> <No> │
│ │
└──────────────────────────────────────────────────────────────────┘
┌────────────────────┤ [.] Configure the clock ├─────────────────────┐
│ │
│ The default NTP server is almost always a good choice, but if you │
│ prefer to use another NTP server, you can enter it here. │
│ │
│ NTP server to use: │
│ │
│ 0.debian.pool.ntp.org_____________________________________________ │
│ │
│ <Continue> │
│ │
└────────────────────────────────────────────────────────────────────┘
┌───────────────────────┤ [!] Configure the clock ├───────────────────────┐
│ │
│ If the desired time zone is not listed, then please go back to the │
│ step "Choose language" and select a country that uses the desired │
│ time zone (the country where you live or are located). │
│ │
│ Select your time zone: │
│ │
│ Eastern │
│ Central │
│ Mountain │
│ Pacific │
│ Alaska │
│ Hawaii │
│ Arizona │
│ East Indiana │
│ Samoa │
│ Coordinated Universal Time (UTC) │
│ │
│ <Go Back> │
│ │
└─────────────────────────────────────────────────────────────────────────┘
[…]
┌────────────────────┤ [!] Finish the installation ├────────────────────┐
│ │
│ System clocks are generally set to Coordinated Universal Time (UTC). │
│ The operating system uses your time zone to convert system time into │
│ local time. This is recommended unless you also use another operating │
│ system that expects the clock to be set to local time. │
│ │
│ Is the system clock set to UTC? │
│ │
│ <Go Back> <Yes> <No> │
│ │
└───────────────────────────────────────────────────────────────────────┘
┌───────────────────┤ [!!] Finish the installation ├────────────────────┐
│ │
│ Installation complete │
│ Installation is complete, so it is time to boot into your new system. │
│ Make sure to remove the installation media, so that you boot into the │
│ new system rather than restarting the installation. │
│ │
│ <Go Back> <Continue> │
│ │
└───────────────────────────────────────────────────────────────────────┘
┌────────────────────┤ Finishing the installation ├──────────────────────┐
│ │
│ │
│ Running final-message... │
│ │
└────────────────────────────────────────────────────────────────────────┘
Configuring network...
Running netcfg-copy-config...
Gathering information for installation report...
Unmounting file systems...
Running release-dhcp-lease...
Rebooting into your new system...
Connection to 192.168.1.201 closed by remote host.
Connection to 192.168.1.201 closed.
$
$ exit
Script done on Fri 12 Jul 2019 11:48:55 AM CDT
✄✄✄✄✄✄✄✄
Perhaps you were looking at the timestamps *in* the syslog.
These start out in UTC, but switch to local time while Grub's
prober runs. Here are extracts from /var/log/installer/syslog
on acer:
✄✄✄✄✄✄✄✄
Jul 12 16:03:03 syslogd started: BusyBox v1.30.1
Jul 12 16:03:03 kernel: klogd started: BusyBox v1.30.1 (Debian 1:1.30.1-4)
Jul 12 16:03:03 kernel: [ 0.000000] Linux version 4.19.0-5-686 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-7)) #1 SMP Debian 4.19.37-5 (2019-06-19)
Jul 12 16:03:03 kernel: [ 0.000000] Disabled fast string operations
[…]
Jul 12 16:44:37 grub-installer: info: grub-install ran successfully
Jul 12 16:44:38 in-target: Reading package lists...
Jul 12 16:44:38 in-target:
Jul 12 16:44:38 in-target: Building dependency tree...
Jul 12 16:44:38 in-target:
Jul 12 16:44:38 in-target: Reading state information...
Jul 12 16:44:38 in-target:
Jul 12 16:44:39 in-target: grub-common is already the newest version (2.02+dfsg1-20).
Jul 12 16:44:39 in-target: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Jul 12 16:44:46 kernel: [ 2509.158052] QNX4 filesystem 0.2.3 registered.
Jul 12 11:44:46 os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
Jul 12 11:44:47 50mounted-tests: debug: mounted using GRUB ext2 filesystem driver
Jul 12 11:44:47 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/05efi
Jul 12 11:44:47 05efi: debug: Not on UEFI platform
[…]
Jul 12 11:44:53 40grub2: debug: parsing: source $prefix/custom.cfg;
Jul 12 11:44:53 40grub2: debug: parsing: fi
Jul 12 11:44:53 40grub2: debug: parsing: ### END /etc/grub.d/41_custom ###
Jul 12 11:44:53 50mounted-tests: debug: /usr/lib/linux-boot-probes/mounted/40grub2 succeeded
Jul 12 11:44:53 linux-boot-prober: debug: linux detected by /usr/lib/linux-boot-probes/50mounted-tests
Jul 12 16:44:57 linux-boot-prober: debug: running /usr/lib/linux-boot-probes/50mounted-tests
Jul 12 16:44:58 50mounted-tests: debug: running /usr/lib/linux-boot-probes/mounted/40grub /dev/sda1 /dev/sda1 /var/lib/os-prober/mount ext2
Jul 12 16:44:58 50mounted-tests: debug: running /usr/lib/linux-boot-probes/mounted/40grub2 /dev/sda1 /dev/sda1 /var/lib/os-prober/mount ext2
[…]
Jul 12 16:47:59 finish-install: info: Running /usr/lib/finish-install.d/60cleanup
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/65partman-md
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/70mtab
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/90base-installer
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/90console
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/94random-seed
Jul 12 16:48:00 finish-install: info: Running /usr/lib/finish-install.d/94save-logs
✄✄✄✄✄✄✄✄
Cheers,
David.
Reply to: