--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: debian-installer: please allow the user to set the system time manually
- From: rjs@netti.fi (Riku Saikkonen)
- Date: Sat, 02 Mar 2013 18:50:03 +0200
- Message-id: <87lia5iw5g.fsf@anar.lloke.localnet>
Package: debian-installer
Version: 20130211
Severity: wishlist
There does not seem to be any way to set the system time manually in the
(expert, text-mode) installer. The "Configure the clock" selection
allows setting it from NTP (but my firewall blocks it), but I can't find
any way to set the time by hand.
Even from the shell prompt, the only way I could find was an ugly
workaround. The closest binaries I found were:
- /sbin/hwclock from busybox, but it does not have a way to specify the
time manually (only to read and write hardware RTCs)
- /usr/bin/rdate can read the time from the network but not from the
user
Just for reference in case someone else encounters this problem before
it is fixed and needs the ugly workaround: I used nc to emulate an rdate
server as follows:
1. On another already-installed Debian system, run:
# printf '%x\n' $(expr $(date +%s) + 2208988800)
(the magic number is from RFC 868, seconds from 1900 to 1970)
2. This gave me "d4dc4f85". Convert this to be suitable for echo, start
a shell on one virtual console in the Debian installer, and run:
# echo -e '\xd4\xdc\x4f\x85' | nc -l -p 37
3. To set the system time, start another shell on a second virtual
console in the installer and run:
# rdate -v -o 37 127.0.0.1
(I had to use -o 37 because of bug #702061.)
4. Verify by running:
# logger test
and checking that the time on the last line in the syslog displayed
in virtual console 4 has the correct time (it's in UTC).
In the past, before I found this workaround, I had installed a couple of
embedded systems ending up having file dates in the 1980s, because
that's what the hardware RTC happened to be set to by default, and the
BIOS/bootloader did not have a way of changing it...
I have two suggestions for fixing this bug:
- Please include the "date" command in busybox in the initrd to allow
setting the system time from the command line.
- If the user answers "No" to the NTP question in the installer menus,
please consider adding a dialog that shows the current time and asks
the user for a new time if it is wrong. (Possibly also ask about
writing the new time to the RTC using hwclock.)
--- End Message ---
--- Begin Message ---
Source: busybox
Source-Version: 1:1.22.0-5
We believe that the bug you reported is fixed in the latest version of
busybox, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 702093@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated busybox package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 22 Mar 2014 20:06:42 +0100
Source: busybox
Binary: busybox busybox-static busybox-udeb busybox-syslogd udhcpc udhcpd
Architecture: source i386 all
Version: 1:1.22.0-5
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description:
busybox - Tiny utilities for small and embedded systems
busybox-static - Standalone rescue shell with tons of builtin utilities
busybox-syslogd - Provides syslogd and klogd using busybox
busybox-udeb - Tiny utilities for the debian-installer (udeb)
udhcpc - Provides the busybox DHCP client implementation
udhcpd - Provides the busybox DHCP server implementation
Closes: 702093 740397
Changes:
busybox (1:1.22.0-5) unstable; urgency=low
.
* Team upload
.
[ Michael Tokarev ]
* enable (apparently forgotten) lzop applet for regular and static builds
* support DEB_BUILD_OPTIONS=parallel=N (Closes: #740397)
* support DEB_BUILD_OPTIONS=nocheck to skip testsuite run
* enable date applet for udeb flavour too (Closes: #702093)
Checksums-Sha1:
cea95eefa8a6d9f1d22ba082446243927a8f2b7d 2142 busybox_1.22.0-5.dsc
486fb55c3efa71148fe07895fd713ea3a5ae343a 2218120 busybox_1.22.0.orig.tar.bz2
2d2e71cf7cace45e1308988c6fddc0a5ebea9300 49252 busybox_1.22.0-5.debian.tar.xz
535ccfa4f033ce45cd3da5d5e97995569208cac8 363366 busybox_1.22.0-5_i386.deb
5d881e7de3538c41a065317eaf0d7f84ec43aad2 765230 busybox-static_1.22.0-5_i386.deb
20c0c50f3adf713671673d35bde11883d5762a4b 159858 busybox-udeb_1.22.0-5_i386.udeb
7d444a769feeb12a81a71204e7e42681d567484a 22450 busybox-syslogd_1.22.0-5_all.deb
9101ef6de18b8d385d8f5c94024137f56a3777b4 20244 udhcpc_1.22.0-5_i386.deb
fd9f7794ed32264cfc589c66e9ab0e612f1eb0ab 23300 udhcpd_1.22.0-5_i386.deb
Checksums-Sha256:
01bea234d066a808fb93337593858815509503872c15fafc1e0095a1cb0a0b4d 2142 busybox_1.22.0-5.dsc
92f00cd391b7d5fa2215c8450abe2ba15f9d16c226e8855fb21b6c9a5b723a53 2218120 busybox_1.22.0.orig.tar.bz2
94dc217e70aceba11f1a28b0cf4d84820e6b6db7a3cbe50da3080a5c0abc0361 49252 busybox_1.22.0-5.debian.tar.xz
03d9b77f4775c3c435c606baef79ad75524d7545792c4b72203bf83f8abb22a3 363366 busybox_1.22.0-5_i386.deb
29122a9150145ea8c3d4e0f0ef3a3ff0fb1b19a460febf6aabab6949e5855513 765230 busybox-static_1.22.0-5_i386.deb
0c9a0c39a4eacf6d6c957a45c3887879894eaeabf00651db774fbaad79107d85 159858 busybox-udeb_1.22.0-5_i386.udeb
b6ec6e9cdfbb173b54b57de239971916f3435077b6f0020df804bff07d4b65bb 22450 busybox-syslogd_1.22.0-5_all.deb
02b700dadcd0a3ff0dc6d8d350405cc8cb77f3dc36b890a4b532c62f674d79f1 20244 udhcpc_1.22.0-5_i386.deb
90238681954b99d7015c35265aba27b55c65252932ba57e381e104f28e663ded 23300 udhcpd_1.22.0-5_i386.deb
Files:
fa0342ac7bd36e6b7710df84bc8621c4 2142 utils optional busybox_1.22.0-5.dsc
ac1881d1cdeb0729b22c663feaf1c663 2218120 utils optional busybox_1.22.0.orig.tar.bz2
9a4642d8e0e7309850334ce6aaff5f7a 49252 utils optional busybox_1.22.0-5.debian.tar.xz
5aa99f60d93c529f2eea2b98ea0fbef9 363366 utils optional busybox_1.22.0-5_i386.deb
cf34aff44ac0cbd3b56ebaeee35e375f 765230 shells extra busybox-static_1.22.0-5_i386.deb
004428d626ea814f7403214914bbc9de 159858 debian-installer extra busybox-udeb_1.22.0-5_i386.udeb
f07ed8f68dd5ccb62a50be3d8cc1aeda 22450 utils optional busybox-syslogd_1.22.0-5_all.deb
7762c7ac5b35c2731330873ed9c0a7a7 20244 net optional udhcpc_1.22.0-5_i386.deb
b9736f7f9836c487454a14572f2d3b01 23300 net optional udhcpd_1.22.0-5_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIVAwUBUy6MNIcvcCxNbiWoAQI3CA//fxMCZBNvlDeSy1Y4O4g2+Ysx3CdLu23q
y84cfpBxATTLzn8zG5ItCHoOSWb1AX4UWHKO2K0qgwYaggjDoD2MwFSa3uFlo2aZ
ZfqHOhmEPDjmbtsUyTMkck7emUaU+zf4bm9sSm/x+in8YXvyDBuCvzkyM3g0CyEh
JNcCNGDDh59LutsloLoBMNn7vaYtGE8nc9taPHSSHMrEyehebcRy1zZVQYyDG5T5
gYmzdCmf7i8MFEEdKts69L7C8A1W2audpDvhqKgN3Z4D5cBxBcf/vi/E+CDjftS2
cnf014mhlhIwuIxv/mj81iBzTWEWGtlHsIZc1L/bs+/dh9PEM4xdVILvWQ18RrAG
B6JznRi6ZRjM88IGh44bCo2lNrBltH8Ocs1t5u+yXOTZsAavHqafEyqmt1D3t9fu
Srpansx8GJJLNSBciuSp61CT7/dXALLtr5jShCNTONPrpZ+o8wFS7K3Okop83BK3
dzoHKz2pV739FpO/K6Xcn7zG88PiIfz8WGJJE0I5d5YweOhIGTis8fUBx6aOxKch
874JNPRsEklxIETWVXBC3OEWEg92fsYJ4nQO0XS6L3sbQ85+w8qLJIv3RRHGmSQt
i7rN2C6XK7eBkEYh52c2n2Nrz3T53F+X/cnyK3z1mDjfUAIEsnVaQIppojtXMgLV
6nciTqAjecI=
=MtC/
-----END PGP SIGNATURE-----
--- End Message ---