Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd

2009-04-18 Thread maximilian attems
On Sat, 18 Apr 2009, Arthur Marsh wrote:

 Package: initramfs-tools
 Version: 0.93.2
 Severity: normal
 
 
 I was trying to remove a 2.6.27 kernel I had built from source and somehow the
 initrd was removed before initramfs-tools tried to remove it.
 
 This resulted in a failure to remove the kernel from the packaging system.
 
 See also bug #524499. The error message I was left with was:
 
Cannot delete /boot/initrd.img-2.6.27, doesn't exist.
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
dpkg: error processing linux-2.6.27 (--purge):
  subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
  linux-2.6.27
E: Sub-process /usr/bin/dpkg returned an error code (1)
  
  So this is a problem with
   /etc/kernel/postrm.d/initramfs-tools 
  
I temporarily added exit 0 to the start of
/etc/kernel/postrm.d/initramfs-tools to force the removal of
kernel-2.6.27.
  
  Right. We need to get the script in
   /etc/kernel/postrm.d/initramfs-tools  
   fixed. Any idea where it came from?
  

can you put an set -x on top of /etc/kernel/postrm.d/initramfs-tools
when trying to purge that one.

thanks

-- 
maks



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



Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd

2009-04-18 Thread Arthur Marsh



maximilian attems wrote, on 2009-04-19 01:31:

On Sat, 18 Apr 2009, Arthur Marsh wrote:


Package: initramfs-tools
Version: 0.93.2
Severity: normal


I was trying to remove a 2.6.27 kernel I had built from source and somehow the
initrd was removed before initramfs-tools tried to remove it.



can you put an set -x on top of /etc/kernel/postrm.d/initramfs-tools
when trying to purge that one.

thanks



Note that the kernels I had problems removing were kernels built with 
make deb-pkg rather than kernel-package's make-kpkg.


Removing linux-2.6.28-rc9 ...
+ '[' -z 2.6.28-rc9 ']'
+ '[' -z '' ']'
+ update-initramfs -d -k 2.6.28-rc9
update-initramfs: Deleting /boot/initrd.img-2.6.28-rc9
Purging configuration files for linux-2.6.28-rc9 ...
+ '[' -z 2.6.28-rc9 ']'
+ '[' -z '' ']'
+ update-initramfs -d -k 2.6.28-rc9
Cannot delete /boot/initrd.img-2.6.28-rc9, doesn't exist.
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
dpkg: error processing linux-2.6.28-rc9 (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-2.6.28-rc9
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.



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



Re: Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd

2009-04-18 Thread Manoj Srivastava
Hi,

This problem exists because any posrtrm script is called twice
 when purging a package; first, to remove it, and second, to purge it.

kernel-package passes along the maintainer scripts in the
 standard format proposed by Frans Pop, and the example scripts take
 care to only try to remove the initrd images  in the remove phase.

I do not know enough of the upstram make deb-pkg to know ig the
 patches Frans had were ever accepted into the mainline kernel (since
 that would enable looking at the maintainer script arguments from
 dpkg). 

In any case, this postinst script should probably ignore errors
 caused by trying to remove the initramfs metadata.

manoj
-- 
This login session: $13.76, but for you $11.88.
Manoj Srivastava sriva...@acm.org http://www.golden-gryphon.com/  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


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



Bug#524534: initramfs-tools: returns error when attempting to remove an already removed initrd

2009-04-17 Thread Arthur Marsh
Package: initramfs-tools
Version: 0.93.2
Severity: normal


I was trying to remove a 2.6.27 kernel I had built from source and somehow the
initrd was removed before initramfs-tools tried to remove it.

This resulted in a failure to remove the kernel from the packaging system.

See also bug #524499. The error message I was left with was:

   Cannot delete /boot/initrd.img-2.6.27, doesn't exist.
   run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
   dpkg: error processing linux-2.6.27 (--purge):
 subprocess post-removal script returned error exit status 1
   Errors were encountered while processing:
 linux-2.6.27
   E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 So this is a problem with
  /etc/kernel/postrm.d/initramfs-tools 
 
   I temporarily added exit 0 to the start of
   /etc/kernel/postrm.d/initramfs-tools to force the removal of
   kernel-2.6.27.
 
 Right. We need to get the script in
  /etc/kernel/postrm.d/initramfs-tools  
  fixed. Any idea where it came from?
 

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.26-2-amd64 
root=UUID=39706f53-7c27-4310-b22a-36c7b042d1a1 ro

-- /proc/filesystems
ext3
vfat

-- lsmod
Module  Size  Used by
battery16776  0 
ipv6  288328  20 
vfat   14976  0 
fat51128  1 vfat
nls_base   12932  2 vfat,fat
it87   28952  0 
hwmon_vid   7296  1 it87
loop   19468  0 
snd_hda_intel 436440  0 
snd_pcm_oss41760  0 
snd_mixer_oss  18816  1 snd_pcm_oss
snd_pcm81672  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy   7428  0 
snd_seq_oss33280  0 
snd_seq_midi   11072  0 
snd_rawmidi26784  1 snd_seq_midi
snd_seq_midi_event 11904  2 snd_seq_oss,snd_seq_midi
snd_seq54304  7 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer  25744  2 snd_pcm,snd_seq
snd_seq_device 11668  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd63688  10 
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
i2c_piix4  13072  0 
soundcore  12064  1 snd
psmouse42268  0 
i2c_core   27936  1 i2c_piix4
k8temp  9216  0 
snd_page_alloc 13072  2 snd_hda_intel,snd_pcm
pcspkr  7040  0 
serio_raw   9860  0 
shpchp 34208  0 
pci_hotplug32056  1 shpchp
wmi11712  0 
button 11680  0 
evdev  14208  3 
ext3  124944  1 
jbd51240  1 ext3
mbcache12804  1 ext3
sg 36576  0 
sr_mod 19652  0 
cdrom  37928  1 sr_mod
sd_mod 29376  3 
ata_generic10116  0 
ide_pci_generic 9220  0 [permanent]
ahci   33036  2 
atiixp  8324  0 [permanent]
libata165600  2 ata_generic,ahci
ohci_hcd   25092  0 
ide_core  128284  2 ide_pci_generic,atiixp
scsi_mod  160760  4 sg,sr_mod,sd_mod,libata
ehci_hcd   35980  0 
dock   14112  1 libata
r8169  31492  0 
thermal22816  0 
processor  42304  1 thermal
fan 9352  0 
thermal_sys17728  3 thermal,processor,fan

-- /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

-- /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: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio  2.9.90-3   GNU cpio -- a program to manage ar
ii  findutils 4.4.0-3utilities for finding files--find,
ii  klibc-utils   1.5.15-1   small utilities built with klibc f
ii  module-init-tools 3.7-pre9-1 tools for managing Linux kernel mo
ii  udev  0.140-2/dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox   1:1.10.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of