Opened 11 years ago

Closed 11 years ago

#3311 closed enhancement (fixed)

util-linux release v2.23

Reported by: bdubbs@… Owned by: bdubbs@…
Priority: normal Milestone: 7.4
Component: Book Version: SVN
Severity: minor Keywords:
Cc:

Description

Just a heads up for now.

rc1 has been released. Builds with:

/configure --disable-su --disable-sulogin --disable-login \
           --disable-chfn-chsh --disable-runuser
make
make install

-disable-chfn-chsh --disable-runuser are needed because they need PAM.

The sed to move /etc/adjtime is still needed.

Change History (7)

comment:1 by bdubbs@…, 11 years ago

Summary: util-linux release v2.23-rc1util-linux release v2.23-rc2

Now at -rc2. No changes to the build procedures.

comment:2 by Armin, 11 years ago

I don't see the point of the adjtime file.

I have used the sed to move it, but used /etc/adjtime to set time with Systemd from UTC to LOCALTIME ... It never got written by anything else.

Meanwhile, on this system I haven't used the sed and I do the same thing, but it still isn't being {,over}written by anything else.

comment:3 by Pierre Labastie, 11 years ago

I think adjtime is used by hwclock. From the man page:

It works like this: hwclock keeps a file, /var/lib/hwclock/adjtime, that keeps some historical information. This is called the adjtime file.

Information is written to that file when system time is copied to hardware clock, which we do in the "setclock" initscript. Maybe systemd uses other files...

comment:4 by bdubbs@…, 11 years ago

The adjtime file is referred to in sys-utils/rtcwake.c and sys-utils/hwclock.c. It is read-only in rtcwake. In hwclock it is written in several places, but generally we only call that at shutdown in the setclock script.

The adjtime file is a state file similar to /var/lib/alsa/asound.state. It's not something an admin would really want to look at, so we put it where the other state files are located.

comment:5 by Armin, 11 years ago

Strange enough, I don't remember ever having adjtime file in /var/lib/hwclock when I used LFS with LFS initscripts. I do remember however, that it was changed in Debian across reboots (it uses /etc/adjtime)

comment:6 by bdubbs@…, 11 years ago

Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned
Summary: util-linux release v2.23-rc2util-linux release v2.23

v2.23 has been released.

comment:7 by bdubbs@…, 11 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 10253.

Note: See TracTickets for help on using tickets.