kernel image update fails if /boot is an unmounted partition
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-
Internal Error: Could not find image (/boot/
dpkg : erreur de traitement de linux-image-
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-restricte
linux-
Le paquet linux-image-
dpkg : erreur de traitement de linux-restricte
problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de linux-image-generic :
linux-
Le paquet linux-image-
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-restricte
linux-
Le paquet linux-restricte
dpkg : erreur de traitement de linux-restricte
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-restricte
Le paquet linux-restricte
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-restricte
linux-
Le paquet linux-restricte
dpkg : erreur de traitement de linux-restricte
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-restricte
Le paquet linux-restricte
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-
linux-
linux-
linux-
linux-generic
linux-
linux
linux-image
If I manually mount /boot, repair is OK:
$ sudo mount /boot/
$ sudo dpkg --configure linux-image-
Paramétrage de linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
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)
Found kernel: /vmlinuz-
Found kernel: /memtest86+.bin
Replacing config file /var/run/
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* 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.
* vboxnetadp (3.0.4)... vboxnetadp (3.0.4): Already installed on this kernel.
* vboxnetflt (3.0.4)... vboxnetflt (3.0.4): Already installed on this kernel.
run-parts: executing /etc/kernel/
f$ sudo dpkg --configure -a
Paramétrage de linux-restricte
update-initramfs: Generating /boot/initrd.
Paramétrage de linux-image-generic (2.6.28.15.20) ...
Paramétrage de linux-restricte
Paramétrage de linux-generic (2.6.28.15.20) ...
Paramétrage de linux-restricte
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=
MachineType: Dell Inc. Latitude D630
Package: linux-image-
ProcCmdLine: root=/dev/
ProcVersionSign
SourcePackage: linux
Title: package linux-image-
Changed in linux (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
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) ... img-2.6. 28-15-generic 2.6.28- 15-generic (--configure) : image-2. 6.28-15- generic
Running depmod.
update-initramfs: Generating /boot/initrd.
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-
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-
I do not see where the syntax error is.
If this is not related to this bug report, sorry for the spam.