[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#387780: initramfs-tools: power cut during update-initramfs leaves system unbootable



Package: initramfs-tools
Version: 0.79
Severity: important


A power cut during update-initramfs may leave the system in an unbootable state as the old initrd.img is 
overwritten, but the new initrd.img is not yet completed.  (This happened to me when my laptop battery ran empty.)  
A simple fix would be to create the new initrd.img as a temporary file and move it to replace the old initrd.img 
only after image creation has been finished.  That way, the chance to have an unbootable system after a power cut 
would be significantly lower, restricted to situations in which the old initrd.img doesn't work anymore.

-- Package-specific info:
-- /proc/cmdline
root=/dev/hda3 ro 

-- /proc/filesystems
	cramfs
	reiserfs
	ntfs
	vfat

-- lsmod
Module                  Size  Used by
ipv6                  217760  10 
xt_tcpudp               2976  3 
xt_state                1888  1 
ip_conntrack           48792  1 xt_state
nfnetlink               5944  1 ip_conntrack
iptable_filter          2752  1 
ip_tables              11160  1 iptable_filter
x_tables               11332  3 xt_tcpudp,xt_state,ip_tables
nls_cp437               5600  1 
vfat                   11296  1 
fat                    46588  1 vfat
nls_iso8859_1           3936  2 
ntfs                  190380  1 
dm_snapshot            15324  0 
dm_mirror              17236  0 
dm_mod                 47892  2 dm_snapshot,dm_mirror
battery                 9252  1 
ac                      4612  0 
i810_audio             31028  0 
ac97_codec             17004  1 i810_audio
usbkbd                  6368  0 
orinoco_cs             16420  1 
orinoco                34452  1 orinoco_cs
hermes                  7136  2 orinoco_cs,orinoco
tsdev                   7200  0 
mousedev               10368  2 
hw_random               5272  0 
snd_intel8x0           29436  1 
pcmcia                 34844  1 orinoco_cs
firmware_class          9472  1 pcmcia
snd_intel8x0m          15372  1 
snd_ac97_codec         82784  2 snd_intel8x0,snd_intel8x0m
snd_ac97_bus            2048  1 snd_ac97_codec
sd_mod                 16208  0 
snd_pcm_oss            43520  0 
snd_mixer_oss          15584  1 snd_pcm_oss
snd_pcm                74408  4 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss
shpchp                 39200  0 
pci_hotplug            24180  1 shpchp
intel_agp              20860  1 
agpgart                29232  1 intel_agp
pcspkr                  2948  0 
psmouse                34248  0 
serio_raw               6436  0 
snd_timer              20292  1 snd_pcm
snd                    46080  11 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               8672  2 i810_audio,snd
snd_page_alloc          9800  3 snd_intel8x0,snd_intel8x0m,snd_pcm
evdev                   8736  0 
rtc                    11252  0 
yenta_socket           23660  5 
rsrc_nonstatic         11840  1 yenta_socket
pcmcia_core            37264  3 pcmcia,yenta_socket,rsrc_nonstatic
parport_pc             31472  0 
parport                31720  1 parport_pc
floppy                 55628  0 
reiserfs              216784  1 
ide_cd                 35328  0 
cdrom                  31888  1 ide_cd
ide_disk               14528  5 
usb_storage            69312  0 
scsi_mod              122220  2 sd_mod,usb_storage
e100                   31044  0 
mii                     5056  1 e100
piix                    8932  0 [permanent]
generic                 4164  0 [permanent]
uhci_hcd               26640  0 
ide_core              111440  5 ide_cd,ide_disk,usb_storage,piix,generic
usbcore               110560  4 usbkbd,usb_storage,uhci_hcd
thermal                12968  1 
processor              21696  1 thermal
fan                     4452  1 

-- kernel-img.conf
# Do not create symbolic links in /
do_symlinks = Yes


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (800, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages initramfs-tools depends on:
ii  busybox-cvs-static            20040623-1 Standalone rescue shell with tons 
ii  cpio                          2.6-17     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.27-1   small statically-linked utilities 
ii  module-init-tools             3.2.2-3    tools for managing Linux kernel mo
ii  udev                          0.093-1    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Reply to: