From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Bro Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Homeground bootable CD - time problem Date: Fri, 12 Jul 2002 14:03:56 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <47F723800769CA44B96BB700F46C562E90F057@dkexh3w2.gnnettest.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1026476608 16322 127.0.0.1 (12 Jul 2002 12:23:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2002 12:23:28 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17SzSJ-0004F7-00 for ; Fri, 12 Jul 2002 14:23:27 +0200 Original-Received: (qmail 19982 invoked by uid 5); 12 Jul 2002 12:04:05 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19974 invoked from network); 12 Jul 2002 12:04:05 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 12 Jul 2002 12:04:05 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZ400M0CXISZG@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 12 Jul 2002 08:04:05 -0400 (EDT) Original-Received: from proxy.nettest.dk (mail.nettest.dk [195.184.43.250]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0GZ4008K1XILKD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 12 Jul 2002 08:03:58 -0400 (EDT) Original-Received: by proxy.nettest.dk; (5.65v4.0/1.3/10May95) id AA12230; Fri, 12 Jul 2002 14:03:56 +0200 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Thread-Topic: SUMMARY: Homeground bootable CD - time problem Thread-Index: AcIpnAcVHKyOAeCCQKCxDW90zAvCOwAABUpA Content-Class: urn:content-classes:message X-Ms-Has-Attach: X-Ms-Tnef-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:949 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:949 > Hi, managers. >=20 > The problem was: >=20 > I have made a bootable CD-ROM with 4.0F on it. The purpose is to = perform automatic > installations of our product. The CD works fine, but: >=20 > at boot, it says: >=20 > WARNING apparently 5 years since last boot >=20 > Setting time to last shutdown time stamp -- Check and reset the date >=20 >=20 > And this is unwanted. But from where does the system get the knowledge = about last > shutdown time. Does it really read wtmp or binary.errlog at boot time? = Any ideas, > so I can change the CD image to a more appropriate time value. >=20 > I got an answer from Tom Blinn, who told me that the time of last = shutdown is saved in the label of the boot disk. > And of course, my CD-ROM is made by first installing a suitable subset = of Tru64Unix, then moving the whole > file system tree into the CD manufactoring host and running mkisofs = here. The disklabel command is at last used > to put the correct file system type and so on into the label of the = iso image. But there is no way to change the > 'last shutdown' time stamp. >=20 > Anyway, I have to put a 'set time and date' menu item into the install = program that is put on the CD-ROM. >=20 > BTW, I have made quite a nice thing. You boot on the CD, and it asks = how much swap space you need, which > of the available disks you want to use, the host name and the IP = address of the primary network interface - > and current date and time. It then reads a file from the tape = describing a series of file sets (mount points) > starting with /, /usr and /var. For each mount point, the space = required and the type are specified in the file. > The install program then allocates space after a first-fit policy, and = tries to avoid putting two filesets of the same > type on the same disk (This is done to separate Oracle tablespaces and = redo logs if necessary). The tape of > course just holds a series of vdumps ordered by the description file. = Swap space is divided evenly among all > selected disks, and the root dump is placed on all 'a' partitions to = provide alternative boot disks. All references > in /etc/fdmns, /etc/fstab etc. are resolved by this program. And it is = just 800 lines of sh+awk in one script > to put on the bootable disk. If anyone are interested, I can send you = a copy. >=20 > Yours, > Lars Bro >=20 > Lars Bro | System Programmer - Denmark > email Lars.Bro@nettest.com | dir +45 72112405=20 > NetTest DK | Kirkebjerg all=E9 90, Broendby, zip 2605 | DK > web www.nettest.com | tel +45 72112200 | fax +45 72 11 22 10 >=20 >=20