Package: util-linux
Version: 2.20.1-5.3
Severity: normal

I created a minimal live netboot image, and I noticed it was
complaining during shutdown:

    [info] Saving the system clock.
    hwclock: Warning: unrecognized third line in adjtime file
    (Expected: `UTC' or `LOCAL' or nothing.)

The file doesn't exist before boot; after boot it contains

    0.0 0 0.0
    0
    UTC

*BUT* it has no trailing newline.  If I add the trailing newline by
hand, hwclock does not complain during the shutdown sequence.  AFAICT,
my /etc/adjtime is created by a printf in /etc/init.d/hwclock.sh.

I think the fix is simply to change

    printf "0.0 0 0.0\n0\nUTC" > /etc/adjtime

to

    printf "0.0 0 0.0\n0\nUTC\n" > /etc/adjtime


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to