--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Superblock time check causes problems for fsck in initramfs
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Mon, 27 Oct 2014 22:51:53 +0000
- Message-id: <20141027225153.16279.56892.reportbug@deadeye.wl.decadent.org.uk>
Package: e2fsprogs
Version: 1.42.12-1
Severity: important
Tags: upstream
We discussed this previously in person, but unfortunately the proposed
solution doesn't work.
The plan for jessie (yes I know it's late) is to mount and fsck the
root and (if separate) /usr filesystems from initramfs code, before
handing over to the real init system.
e2fsck complains if the superblock write time is in the future, and
because the RTC is set to local time on some systems, we are doing the
necessary correction of system time in the initramfs. This is
undesirable because changing the time zone may now require an
initramfs rebuild.
You said that this check could be disabled in a configuration file,
e2fsck.conf, and we can create that in the initramfs. This works in
so far as it suppresses warnings while the initramfs code is running.
Unfortunately, every init system currently still checks the root
file-system again. If the RTC is set to local time and that is east
of UTC, the first fsck sets the write time in the future, and the
second fsck warns.
Please disable this warning by default.
Ben.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.42.12-1
ii libblkid1 2.25.1-5
ii libc6 2.19-12
ii libcomerr2 1.42.12-1
ii libss2 1.42.12-1
ii libuuid1 2.25.1-5
ii util-linux 2.25.1-5
e2fsprogs recommends no packages.
Versions of packages e2fsprogs suggests:
pn e2fsck-static <none>
pn gpart <none>
ii parted 3.2-6
-- no debconf information
--- End Message ---
--- Begin Message ---
On 2015-04-19 17:27, Ben Hutchings wrote:
> On Sun, 19 Apr 2015 15:52:34 +0100 Ben Hutchings <ben@decadent.org.uk> wrote:
>> Control: retitle -1 Changes to root and /usr filesystem mounting and checking
>> Control: tag -1 patch
>>
>> There are several other issues with the initramfs-tools changes that
>> will require manual configuration changes on some systems. I'm
>> expanding this bug to cover all of them, and attaching a patch with my
>> text, closely based on what I already put in the package's NEWS file.
>
> Actually this text belongs in the 'Upgrading your kernel and related
> packages' section. Here's a new patch that puts it there.
>
> Ben.
>
Thanks, applied as-is.
~Niels
--- End Message ---