kernel image update fails if /boot is an unmounted partition

Bug #416310 reported by El Goretto
78
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

It's a packaging bug. It doesn't check if /boot is present in fstab and presently mounted.

configuration step fails.
Even after copying stuff put in unmount /boot into mounted /boot, dpkg report dependencies problems:
$ sudo dpkg --configure -a
Paramétrage de linux-image-2.6.28-15-generic (2.6.28-15.49) ...
Internal Error: Could not find image (/boot/vmlinuz-2.6.28-15-generic)
dpkg : erreur de traitement de linux-image-2.6.28-15-generic (--configure) :
 le sous-processus post-installation script a retourné une erreur de sortie d'état 2
dpkg : des problèmes de dépendances empêchent la configuration de linux-restricted-modules-2.6.28-15-generic :
 linux-restricted-modules-2.6.28-15-generic dépend de linux-image-2.6.28-15-generic ; cependant :
 Le paquet linux-image-2.6.28-15-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-restricted-modules-2.6.28-15-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-image-generic :
 linux-image-generic dépend de linux-image-2.6.28-15-generic ; cependant :
 Le paquet linux-image-2.6.28-15-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-image-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-restricted-modules-generic :
 linux-restricted-modules-generic dépend de linux-restricted-modules-2.6.28-15-generic ; cependant :
 Le paquet linux-restricted-modules-2.6.28-15-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-restricted-modules-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-generic :
 linux-generic dépend de linux-image-generic (= 2.6.28.15.20) ; cependant :
 Le paquet linux-image-generic n'est pas encore configuré.
 linux-generic dépend de linux-restricted-modules-generic (= 2.6.28.15.20) ; cependant :
 Le paquet linux-restricted-modules-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-restricted-modules :
 linux-restricted-modules dépend de linux-restricted-modules-generic (= 2.6.28.15.20) ; cependant :
 Le paquet linux-restricted-modules-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-restricted-modules (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux :
 linux dépend de linux-restricted-modules (= 2.6.28.15.20) ; cependant :
 Le paquet linux-restricted-modules n'est pas encore configuré.
dpkg : erreur de traitement de linux (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-image :
 linux-image dépend de linux-image-generic (= 2.6.28.15.20) ; cependant :
 Le paquet linux-image-generic n'est pas encore configuré.
dpkg : erreur de traitement de linux-image (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-2.6.28-15-generic
 linux-restricted-modules-2.6.28-15-generic
 linux-image-generic
 linux-restricted-modules-generic
 linux-generic
 linux-restricted-modules
 linux
 linux-image

If I manually mount /boot, repair is OK:
$ sudo mount /boot/
$ sudo dpkg --configure linux-image-2.6.28-15-generic
Paramétrage de linux-image-2.6.28-15-generic (2.6.28-15.49) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)/grub/splashimages/fiesta.xpm.gz

Found kernel: /vmlinuz-2.6.28-15-generic
Found kernel: /memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.28-15-generic
 * vboxdrv (3.0.4)... vboxdrv (3.0.4): Already installed on this kernel.
                                                                                                               [ OK ]
 * vboxnetadp (3.0.4)... vboxnetadp (3.0.4): Already installed on this kernel.
                                                                                                               [ OK ]
 * vboxnetflt (3.0.4)... vboxnetflt (3.0.4): Already installed on this kernel.
                                                                                                               [ OK ]
run-parts: executing /etc/kernel/postinst.d/nvidia-common

f$ sudo dpkg --configure -a
Paramétrage de linux-restricted-modules-2.6.28-15-generic (2.6.28-15.20) ...
update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic

Paramétrage de linux-image-generic (2.6.28.15.20) ...
Paramétrage de linux-restricted-modules-generic (2.6.28.15.20) ...
Paramétrage de linux-generic (2.6.28.15.20) ...
Paramétrage de linux-restricted-modules (2.6.28.15.20) ...
Paramétrage de linux-image (2.6.28.15.20) ...
Paramétrage de linux (2.6.28.15.20) ...

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: le sous-processus post-installation script a retourné une erreur de sortie d'état 1
HibernationDevice: RESUME=UUID=e1d34fc8-7520-4b12-9f98-d3fe84fd4a6b
MachineType: Dell Inc. Latitude D630
Package: linux-image-2.6.28-15-generic 2.6.28-15.49
ProcCmdLine: root=/dev/mapper/vg_local-lv_root ro quiet splash
ProcVersionSignature: Ubuntu 2.6.28-14.47-generic
SourcePackage: linux
Title: package linux-image-2.6.28-15-generic 2.6.28-15.49 failed to install/upgrade: le sous-processus post-installation script a retourné une erreur de sortie d'état 1

Revision history for this message
El Goretto (el-goretto) wrote :
Changed in linux (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Snap (snap-56k) wrote :

I do not have the same problem, but this also affects package linux-image-2.6.28-15-generic:

$ sudo apt-get upgrade

or

$ sudo dpkg --configure -a

Paramétrage de linux-image-2.6.28-15-generic (2.6.28-15.52) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.28-15.49 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.28-15.49 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
expr: erreur de syntaxe <-- "syntax error"
User postinst hook script [/sbin/update-grub] exited with value 2
dpkg : erreur de traitement de linux-image-2.6.28-15-generic (--configure) :
 le sous-processus post-installation script a retourné une erreur de sortie d'état 2
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-2.6.28-15-generic

I do not see where the syntax error is.
If this is not related to this bug report, sorry for the spam.

Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.