Bug 25028 - make installworld uses wrong time
Summary: make installworld uses wrong time
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-12 07:20 UTC by marka
Modified: 2001-06-04 17:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marka 2001-02-12 07:20:00 UTC
	make installworld uses wrong time if system is using wall clock
	time.

	In my case all files installed were 11 hours into the future,
	which is my offset from UTC.

	This is bad if your makefiles have a dependancy on anything
	installed by "make installworld".

Fix: 

I suspect running "adjkerntz -i" will fix this and needs
	to be documented in UPDATING.
How-To-Repeat: 
	Be at a offset from utc and use /etc/wall_cmos_clock
	Reboot to single user
	fsck -p 
	mount -u /
	mount -a
	cd /usr/src
	make installworld
	reboot

	check timestamps in /bin
Comment 1 DougB 2001-02-12 08:39:52 UTC
marka@nominum.com wrote:

> >Description:
> 
>         make installworld uses wrong time if system is using wall clock
>         time.
> 
>         In my case all files installed were 11 hours into the future,
>         which is my offset from UTC.
> 
>         This is bad if your makefiles have a dependancy on anything
>         installed by "make installworld".

Mark,

	Did you set your time zone with sysinstall when you installed? Do you have
an /etc/localtime file? My home workstation is dual boot and uses wall
clock time, and I haven't had that experience. Try using /stand/sysinstall,
choosing Configure, then Time Zone. If your problem persists after
(re-)setting the TZ, we'll take it from there. 

Doug
Comment 2 mark.andrews 2001-02-12 12:20:15 UTC
> 	Did you set your time zone with sysinstall when you installed?

	Yes.

> Do you have an /etc/localtime file?

	Yes.

> My home workstation is dual boot and uses wall
> clock time, and I haven't had that experience. Try using /stand/sysinstall,
> choosing Configure, then Time Zone. If your problem persists after
> (re-)setting the TZ, we'll take it from there. 
> 
> Doug
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews@nominum.com
Comment 3 mark.andrews 2001-02-12 13:07:26 UTC
> > My home workstation is dual boot and uses wall
> > clock time, and I haven't had that experience. Try using /stand/sysinstall,
> > choosing Configure, then Time Zone. If your problem persists after
> > (re-)setting the TZ, we'll take it from there. 
> > 
> > Doug

	I went through the exercise above.

	This is really a documentation problem.

	UPDATING has:

        make buildworld
        make buildkernel KERNEL=YOUR_KERNEL_HERE
        make installkernel KERNEL=YOUR_KERNEL_HERE
        reboot  (in single user) [1]
        make installworld
        mergemaster
        reboot

	To get from reboot (single user) to make installworld the
	minimum steps should be assuming only local fs.

		fsck -p
		mount -u /
		mount -a
		cd /usr/src
	
	At this stage the kernel still thinks that the clock is at
	UTC (default).

	Running "adjkerntz -i" is not the obvious thing to do before
	running "make installworld" but it needs to be done and to be
	documented.

	Mark
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews@nominum.com
Comment 4 Doug Barton freebsd_committer freebsd_triage 2001-02-15 19:51:54 UTC
State Changed
From-To: open->analyzed


Mark's suggestion seems reasonable and well researched. 


Comment 5 Doug Barton freebsd_committer freebsd_triage 2001-02-15 19:51:54 UTC
Responsible Changed
From-To: freebsd-bugs->imp


Warner is Mr. UPDATING
Comment 6 Warner Losh freebsd_committer freebsd_triage 2001-06-04 17:20:52 UTC
State Changed
From-To: analyzed->closed

UPDATING updated.