Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Keanw-0008Sf-P3 for mharc-grub-devel@gnu.org; Sat, 13 Sep 2008 15:29:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Keanu-0008SI-Nb for grub-devel@gnu.org; Sat, 13 Sep 2008 15:29:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Keans-0008S1-6J for grub-devel@gnu.org; Sat, 13 Sep 2008 15:29:09 -0400 Received: from [199.232.76.173] (port=34839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Keanr-0008Rw-UE for grub-devel@gnu.org; Sat, 13 Sep 2008 15:29:07 -0400 Received: from relay00.pair.com ([209.68.5.9]:4023) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Keanr-0004N9-Re for grub-devel@gnu.org; Sat, 13 Sep 2008 15:29:08 -0400 Received: (qmail 95435 invoked from network); 13 Sep 2008 19:29:05 -0000 Received: from unknown (HELO squeak.fifthhorseman.net) (unknown) by unknown with SMTP; 13 Sep 2008 19:29:05 -0000 X-pair-Authenticated: 68.167.70.204 Received: by squeak.fifthhorseman.net (Postfix, from userid 1000) id 490D34C15E; Sat, 13 Sep 2008 15:22:41 -0400 (EDT) To: The development of GRUB 2 References: <78f747be0809102016y7a5a1208t632760e4ee8f0b5f@mail.gmail.com> <48CA801B.6080607@nic.fi> From: Daniel Kahn Gillmor Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAABtQTFRF Y3MvEhIOLCUeRzkvZU5Bk3FgqG5iwpN+3KuY6yKk5wAAAAF0Uk5TAEDm2GYAAAHtSURBVDjLZZNB lqIwEIbTOnMA4hzABHqvSdg7JPTa90zkAi1uZzEYbwDH7j+QKGJtgPqq6q9UBUIIWUuWzYx/kmgr MfdnNE9gnkBDSgKazgCnjO4iqFLx6cHodvL/EhlqsQfIsiiyoqEUZQA0RkzgIxYPynTsI4pEv5TG yLya1Rr9hfP3YfDOjsXkCPBKVR38IF3FYMVYaw9g3ASGzu4RuDmkjDoBpDw0FkADfM7BMAF/wvfu CRrvJ78/IYMkkJVuAv0chG2UTdToPU6yeYCneO8cy4onMMY1w3hyqVhsiugwWs5ljXAhJWdZ3Mea Yc0YYO07Z5yze3qIi5JsE/zO951V1lXqGFer9B9T6gbg1pX/6+orAfNdWNRw1963F3upmn8J2MKZ 88Vd/fXWthft0vWxAOfWAwTrjE2gU9K1fgRDAH8T+C1EDXAGuAOU+gEqEabbQiPMSqWLiCMKlcDg T+rwAEQUAdz7Nqy2ePrJKnf+FgAkqlkCIZsag73eIG/5cQ6wEEzLKudt/gKyUmPwArPXcwnsPRec 55zzotq+gD3nAtGC5+JFmwhamK/22+j8VRs/jzItJmsWEliv0iDGLCSCuhxtv1uAiqLZ0PBxAdYU veZS5GRpiOeS8+0bWAEAvvnJmgd7T5hq8WdPP/xqtePvshO+AAAAAElFTkSuQmCC Date: Sat, 13 Sep 2008 15:22:34 -0400 In-Reply-To: (Arthur Marsh's message of "Sat\, 13 Sep 2008 14\:22\:47 +0930") Message-ID: <873ak3am11.fsf@squeak.fifthhorseman.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: setting the system clock before launching operating system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2008 19:29:11 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat 2008-09-13 00:52:47 -0400, Arthur Marsh wrote: > Vesa J=C3=A4=C3=A4skel=C3=A4inen wrote, on 2008-09-13 00:13: >> Geoff Karl wrote: >>> I would like to be able to set the clock to a particular time >>> automatically before launching an operating system. >>> >>> Anyone have any ideas if this can be done during the boot loader proces= s? >> >> Yes it can be done. But why? > > Some machines (e.g. a Compaq Armada 1750) don't have the option to set > the time via BIOS or set-up boot floppy. > > When the time had been lost, I'd have start-up problems with fsck > checking when the file system had last been checked. The same is true for many older PowerPC machines whose mainboard batteries have begun to fail. Being able to automate the bootloader to say "look, if the hardware clock thinks it is 1904 (or 1900, or 1970, or anytime before the turn of the century) it is probably wrong; set it to at least 2008" at every boot would be pretty useful. This is especially useful on 32-bit architectures with a default hardware epoch date so far in the past that crappier NTP implementations think that it's actually in the future. I've dealt with this at the OS level (for various OSes) on older PowerPC machines, and it's doable, but a pain. Being able to guarantee that no matter what OS you're booting, the initial clock will be at least set to time X would be pretty handy. --dkg --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIVAwUBSMwS+szS7ZTSFznpAQIhVQ/+Ll+lutpClrzj9BovNGniZOVjYgE0ud4t 41RPRwtb5H5XvqAgNiBdBIRjzZlWtqg1Nza2fISuDDJJ6WD3VYTyZE8zX9TJ8vlS 7NCOCdB9l/TV1MM6CplTFYFAXyH/1fmxhJ88VBomSqeAFcWqOs4QWsBGjL5+YkKT VQXmkFeGWj8qH9V4bzao4KNchyIQRD7JSSYNzucbpbVVNKKeVMdsqZmQS1C+sFR7 I7knVjLxlUNMDSC6HtiogcNdIUjDTmEcsO3YvcGms8cDXZ01jW9QBtkcfHenhXtv O22j5r9iIt+0jhHJjWYr1WgzGsYvBl4z2p+QnsTF1/D5K7glV2hgaiishQUZXt0d X4kFkT0cVjP+TXhFH997emhaMWtfBodeK8AcXXatq6d+y2b3Z5bPshw1wqQa4ly0 OCV0NNV6l3quuIXZ5xRC3rAWXFydw+MPR1XNXd0LdDi8zsdTTfnb/IZNhTKhJ9gJ OjTDmYObLqKHMpbCtSymeU7pomTvjjR3eEaZCvqd2c93GTbETysJuF1zO/WohZ/1 8vdhd5AjUgCMMBVrEI5IbZz2P4zjCDvLtnsm5NJKHQjyDrh0Zi7y7OANGcEXDLxF Hbllm1K3GWSsLJKz/xSqrEHcK+fLt+WxJ6fN8bzvvBqIOv1md27vCLo4PmG4LF/d IkVMUBVK7TE= =GCV4 -----END PGP SIGNATURE----- --=-=-=--