So, I set some debug echo info in the mentioned system files, and saved that to /mnt/BOOTDEVICE/tmp/porteusdatedebug.info
(I put into /etc/profile.local a tweak that creates the syslink of /x that always points to the current boot / porteus media the system was booted from, using this code:
export PORTEUSDEV=`awk 'c-->0;/Booting device:/{c=1}' /mnt/live/var/log/livedbg`
(When /mnt/live/var/log/livedbg would change I have to revise / tweak this code snippet, of course)
Code: Select all
root@porteus:/x# cat tmp/porteusdatedebug.info
/etc/rc.d/rc.S BEGIN 02.10.2014 22:57:48 +0000 Local time zone must be set--see zic manual page
/etc/rc.d/rc.S END 03.10.2014 00:57:52 +0200 CEST
/etc/rc.d/rc.M BEGIN 03.10.2014 00:57:52 +0200 CEST
/etc/rc.d/rc.M PRIOR rc.services 03.10.2014 00:57:53 +0200 CEST
/etc/rc.d/rc.services BEGIN 03.10.2014 00:57:53 +0200 CEST
/etc/rc.d/rc.M END 03.10.2014 00:57:53 +0200 CEST
/etc/rc.d/rc.services AFTER rc.yp 02.10.2014 22:58:14 +0200 CEST
/etc/rc.d/rc.services END 02.10.2014 22:58:14 +0200 CEST
root@porteus:/x# date +%d.%m.%Y\ %H:%M:%S\ %z\ %Z
02.10.2014 22:58:47 +0200 CEST
As you can see... my tweak Port starts with console mode, and when the system is up and running, but without any X (and X means: XFCe), the clock does get changed + 2 hrs, but then changed back again to the correct time...
I write this from the virtual console, without X started yet, now I start it and look if the clock stays set okay (which would be strange, since it malfunctioned all the time prior at boot time... and aside from putting in these debug lines into the 3 setup files, I did change nothing on the system at all.... so by all logic, the clock should be set wrongly again once I started X, and not only the X clock and the clock in the terminals, but also the clock for the whole system including the virtual terminals should be set wrongly...
Now, the current time prior startx is:
Code: Select all
root@porteus:~# date +%d.%m.%Y\ %H:%M:%S\ %z\ %Z
02.10.2014 23:10:59 +0200 CEST
(Yes, I am a slow typer)
Now, let's start X and see what will happen...
And indeed... the clock was not altered by startx, and not by XFCe: XFCe told me it's 23:12, and the VT told me this:
Code: Select all
root@porteus:~# date +%d.%m.%Y\ %H:%M:%S\ %z\ %Z
02.10.2014 23:12:39 +0200 CEST
Weird, eh? How can just some echo lines in the setup files fix an issue like that?