Something about rc.update

Please post any bugs you have found
Post Reply
Message
Author
User avatar
ozboomer
Posts: 135
Joined: Wed 04 May 2005, 21:22
Location: Melbourne, Australia

Something about rc.update

#1 Post by ozboomer »

Well, it's that lil' bugbear file again...

When I startup Puppy, rc.update executes a few lines of code, viz:

Code: Select all

  #must keep rc.packages pristine...
  cp -f $SOURCEROOT/.etc/rc.d/rc.packages $DESTROOT/.etc/rc.d/rc.packages
  #rc.sysinit always pristine, but overwrite this anyway...
  cp -f $SOURCEROOT/.etc/rc.d/rc.sysinit $DESTROOT/.etc/rc.d/rc.sysinit
  cp -f $SOURCEROOT/.etc/rc.d/rc.sysinit-cd $DESTROOT/.etc/rc.d/rc.sysinit-cd
  cp -f $SOURCEROOT/.etc/rc.d/rc.sysinit-hd $DESTROOT/.etc/rc.d/rc.sysinit-hd

  [...]

  # always update...
  rm -rf $DESTROOT/puppy-reference
  cp -a $SOURCEROOT/puppy-reference $DESTROOT/
...but there's something funny going on.

After I did the upgrade to 1.0.5, one o fthe first things I did was to update the timezone and check the date/time. My current /etc/TZ file contains the string 'PUP-10' (as I'm in eastern Australia). I couldn't find any further reference to time zone information in the /etc/rc.d files.

...but have a look at the timestamps on these files for a boot that took place at 10:16pm local time (see file 1016.jpg)... ...and another boot at 10:19pm local time (see file 1019.jpg)

I only found out about this as one of my scripts that extracts data from a backup reported some strange messages. For example, a backup that was done at 10:33pm local time has some dodgy timestamps:

Code: Select all

Re-build /mnt/home/pupbac_105_10042233.tgz into /mnt/home/pupbld_105_10042233 ...
tar: ./.etc/modules.conf: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/ramdiskfssize: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/ramdisksize: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/rc.d/rc.sysinit: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/rc.d/rc.modules: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/rc.d/rc.packages: time stamp 2005-10-05 08:18:30 is 35093 s in the future
tar: ./.etc/rc.d/rc.reboot: time stamp 2005-10-05 08:18:30 is 35093 s in the future
...and the timestamps are, indeed a bit silly (capture done at 10:40pm local time - see file 1040.jpg)

Just reporting the problems...
Attachments
1040.jpg
The files at 10:40pm
(94.53 KiB) Downloaded 445 times
1019.jpg
The files at 10:19pm
(67.44 KiB) Downloaded 447 times
1016.jpg
The files at 10:16pm
(64.7 KiB) Downloaded 438 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

Okay, I haven't tried to strain my brain by looking to closely
at the images, but a quick question.
You should have /etc/localtime pointing to /usr/share/zoneinfo/GMT-10.

User avatar
ozboomer
Posts: 135
Joined: Wed 04 May 2005, 21:22
Location: Melbourne, Australia

#3 Post by ozboomer »

BarryK wrote:You should have /etc/localtime pointing to /usr/share/zoneinfo/GMT-10.
Yup, tha's where the file currently points.

Post Reply