Bug#552810: initramfs-tools: Localtime not set during initramfs boot leading to wrong fsck.ext4 errors
Package: initramfs-tools
Version: 0.93.4
Severity: important
*** Please type your report below this line ***
After a power grid problem in my neighborhood, my workstation
rebooted and detected problems in the ext4 LVM volumes.
It appears that after a manual fsck.ext4, these problems were
trigerred because of a mismatch between the localtime and the time
set during initramfs boot sequence (probably the bios time).
The journal entries timestaps were simply offseted by one hour. This
matches exactly the difference between the my bios time (set to UTC)
and the Europe/Paris locatime my box uses.
I think it would be good to set to the correct locatime before running
disk checks that depend on the machine time. Otherwise it triggers
errors that cannot be skipped automatically when they could be.
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.31 root=/dev/mapper/main-root ro quiet
-- /proc/filesystems
ext4
ext4dev
fuseblk
-- lsmod
Module Size Used by
nvidia 9576468 20
agpgart 31652 1 nvidia
af_packet 17880 2
ppdev 5864 0
lp 8764 0
fuse 52412 5
tun 12156 0
sbp2 20156 0
loop 13624 0
snd_hda_intel 23340 0
snd_hda_codec 63208 1 snd_hda_intel
snd_usb_audio 73172 0
snd_pcm_oss 31116 0
snd_usb_lib 13960 1 snd_usb_audio
snd_mixer_oss 14160 1 snd_pcm_oss
snd_pcm 60236 4 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_pcm_oss
snd_hwdep 6368 2 snd_hda_codec,snd_usb_audio
snd_seq_dummy 2428 0
snd_seq_oss 23624 0
snd_seq_midi 5868 0
snd_rawmidi 19388 2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event 6348 2 snd_seq_oss,snd_seq_midi
snd_seq 43124 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 18324 2 snd_pcm,snd_seq
uvcvideo 50676 0
snd_seq_device 6388 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 52436 12 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
videodev 34264 1 uvcvideo
v4l1_compat 12424 2 uvcvideo,videodev
soundcore 6616 1 snd
8250_pnp 14064 0
rtc_cmos 9276 0
8250 19832 1 8250_pnp
rtc_core 15816 1 rtc_cmos
snd_page_alloc 8244 2 snd_hda_intel,snd_pcm
i5k_amb 5300 0
serial_core 16740 1 8250
hwmon 2576 1 i5k_amb
shpchp 27704 0
i5000_edac 13296 0
i2c_i801 8484 0
psmouse 44748 0
pci_hotplug 25028 1 shpchp
edac_core 48952 3 i5000_edac
i2c_core 20264 3 nvidia,videodev,i2c_i801
dcdbas 6716 0
button 5240 0
processor 35012 0
parport_pc 32740 1
parport 31780 3 ppdev,lp,parport_pc
evdev 8496 10
serio_raw 4932 0
pcspkr 2184 0
rtc_lib 2596 1 rtc_core
rng_core 3692 0
ext4 263464 3
mbcache 7036 1 ext4
jbd2 70508 1 ext4
crc16 1740 1 ext4
dm_mod 59172 9
usbhid 33068 0
hid 36680 1 usbhid
usb_storage 32824 0
usb_libusual 19888 1 usb_storage
firewire_ohci 20168 0
firewire_core 40880 1 firewire_ohci
crc_itu_t 1784 1 firewire_core
sg 25208 0
sd_mod 29992 4
crc_t10dif 1604 1 sd_mod
sr_mod 13588 0
cdrom 30232 1 sr_mod
ohci1394 26472 0
ata_generic 4292 0
pata_acpi 3576 0
ahci 33108 0
ata_piix 22092 0
mptsas 45176 0
mptscsih 28556 1 mptsas
mptbase 78252 2 mptsas,mptscsih
scsi_transport_sas 25164 1 mptsas
megaraid_sas 28684 3
ieee1394 76028 2 sbp2,ohci1394
libata 154460 4 ata_generic,pata_acpi,ahci,ata_piix
scsi_mod 138644 10 sbp2,usb_storage,sg,sd_mod,sr_mod,mptsas,mptscsih,scsi_transport_sas,megaraid_sas,libata
uhci_hcd 19204 0
floppy 47500 0
tg3 95876 0
ehci_hcd 30884 0
usbcore 132088 9 snd_usb_audio,snd_usb_lib,uvcvideo,usbhid,usb_storage,usb_libusual,uhci_hcd,ehci_hcd
nls_base 6888 1 usbcore
thermal 12848 0
fan 3088 0
unix 21656 514
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (700, 'unstable'), (680, 'stable'), (670, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.10-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.11-1 tools for managing Linux kernel mo
ii udev 146-6 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
Reply to: