SUMMARY: Homeground bootable CD - time problem

From: Lars Bro (Lars.Bro@nettest.com)
Date: Fri Jul 12 2002 - 08:03:56 EDT


> Hi, managers.
>
> The problem was:
>
> 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:
>
> at boot, it says:
>
> WARNING apparently 5 years since last boot
>
> Setting time to last shutdown time stamp -- Check and reset the date
>
>
> 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.
>
> 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.
>
> Anyway, I have to put a 'set time and date' menu item into the install program that is put on the CD-ROM.
>
> 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.
>
> Yours,
> Lars Bro
>
> Lars Bro | System Programmer - Denmark
> email Lars.Bro@nettest.com | dir +45 72112405
> NetTest DK | Kirkebjerg allé 90, Broendby, zip 2605 | DK
> web www.nettest.com | tel +45 72112200 | fax +45 72 11 22 10
>
>



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:46 EDT