kernel install: flash-kernel is sometimes never executed

Bug #1090594 reported by C de-Avillez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Fix Released
Undecided
Adam Conrad

Bug Description

When this happens, a kernel re-install works.
For example:

## SSH command: sudo apt-get -y dist-upgrade
+ ssh ubuntu@Armada1 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=no -i /var/lib/ubuntu-iso-testing/kernel-sru/ssh-keys/qa-ubuntu 'sudo apt-get -y dist-upgrade'
Warning: Permanently added 'armada1' (ECDSA) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  linux-headers-3.5.0-1606 linux-headers-3.5.0-1606-armadaxp
  linux-image-3.5.0-1606-armadaxp
The following packages will be upgraded:
  flash-kernel libglib2.0-0 linux-armadaxp linux-headers-armadaxp
  linux-image-armadaxp python3-dbus rsyslog
7 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.3 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main libglib2.0-0 armhf 2.34.1-1ubuntu1 [1,036 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-image-3.5.0-1606-armadaxp armhf 3.5.0-1606.8 [16.9 MB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main rsyslog armhf 5.8.6-1ubuntu9.1 [374 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main python3-dbus armhf 1.1.1-1ubuntu0.1 [91.1 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main flash-kernel armhf 3.0~rc.4ubuntu27.1 [16.9 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-armadaxp armhf 3.5.0.1606.8 [1,736 B]
Get:7 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-image-armadaxp armhf 3.5.0.1606.8 [2,360 B]
Get:8 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-headers-3.5.0-1606 armhf 3.5.0-1606.8 [12.2 MB]
Get:9 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-headers-3.5.0-1606-armadaxp armhf 3.5.0-1606.8 [750 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports/ quantal-proposed/main linux-headers-armadaxp armhf 3.5.0.1606.8 [2,352 B]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 31.3 MB in 5s (6,151 kB/s)
(Reading database ... 46885 files and directories currently installed.)
Preparing to replace libglib2.0-0:armhf 2.34.0-1ubuntu1 (using .../libglib2.0-0_2.34.1-1ubuntu1_armhf.deb) ...
Unpacking replacement libglib2.0-0:armhf ...
Selecting previously unselected package linux-image-3.5.0-1606-armadaxp.
Unpacking linux-image-3.5.0-1606-armadaxp (from .../linux-image-3.5.0-1606-armadaxp_3.5.0-1606.8_armhf.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Done.
Preparing to replace rsyslog 5.8.6-1ubuntu9 (using .../rsyslog_5.8.6-1ubuntu9.1_armhf.deb) ...
Unpacking replacement rsyslog ...
Preparing to replace python3-dbus 1.1.1-1 (using .../python3-dbus_1.1.1-1ubuntu0.1_armhf.deb) ...
Unpacking replacement python3-dbus ...
Preparing to replace flash-kernel 3.0~rc.4ubuntu27 (using .../flash-kernel_3.0~rc.4ubuntu27.1_armhf.deb) ...
Unpacking replacement flash-kernel ...
Preparing to replace linux-armadaxp 3.5.0.1605.7 (using .../linux-armadaxp_3.5.0.1606.8_armhf.deb) ...
Unpacking replacement linux-armadaxp ...
Preparing to replace linux-image-armadaxp 3.5.0.1605.7 (using .../linux-image-armadaxp_3.5.0.1606.8_armhf.deb) ...
Unpacking replacement linux-image-armadaxp ...
Selecting previously unselected package linux-headers-3.5.0-1606.
Unpacking linux-headers-3.5.0-1606 (from .../linux-headers-3.5.0-1606_3.5.0-1606.8_armhf.deb) ...
Selecting previously unselected package linux-headers-3.5.0-1606-armadaxp.
Unpacking linux-headers-3.5.0-1606-armadaxp (from .../linux-headers-3.5.0-1606-armadaxp_3.5.0-1606.8_armhf.deb) ...
Preparing to replace linux-headers-armadaxp 3.5.0.1605.7 (using .../linux-headers-armadaxp_3.5.0.1606.8_armhf.deb) ...
Unpacking replacement linux-headers-armadaxp ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up libglib2.0-0:armhf (2.34.1-1ubuntu1) ...
No schema files found: doing nothing.
Setting up linux-image-3.5.0-1606-armadaxp (3.5.0-1606.8) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-1606-armadaxp /boot/vmlinuz-3.5.0-1606-armadaxp
update-initramfs: Generating /boot/initrd.img-3.5.0-1606-armadaxp
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.5.0-1606-armadaxp /boot/vmlinuz-3.5.0-1606-armadaxp
flash-kernel: deferring update (trigger activated)
Setting up rsyslog (5.8.6-1ubuntu9.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
rsyslog stop/waiting
rsyslog start/running, process 3296
Setting up python3-dbus (1.1.1-1ubuntu0.1) ...
Setting up flash-kernel (3.0~rc.4ubuntu27.1) ...
Setting up linux-image-armadaxp (3.5.0.1606.8) ...
Setting up linux-armadaxp (3.5.0.1606.8) ...
Setting up linux-headers-3.5.0-1606 (3.5.0-1606.8) ...
Setting up linux-headers-3.5.0-1606-armadaxp (3.5.0-1606.8) ...
Setting up linux-headers-armadaxp (3.5.0.1606.8) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
+ RC=0
+ SSH_PARMS=
+ return 0
+ sys_ssh 'uname -a | grep virtual >/dev/null 2>&1'

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: linux-image-3.5.0-1606-armadaxp 3.5.0-1606.8
ProcVersionSignature: Ubuntu 3.5.0-1606.8-armadaxp 3.5.7.1
Uname: Linux 3.5.0-1606-armadaxp armv7l
ApportVersion: 2.6.1-0ubuntu9
Architecture: armhf
Date: Fri Dec 14 18:01:38 2012
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_US:
 TERM=vt102
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-armadaxp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
C de-Avillez (hggdh2) wrote :
Revision history for this message
C de-Avillez (hggdh2) wrote :

There is a good chance this is related to both the kernel *and* kernel-flash being updated at the same time.

Revision history for this message
C de-Avillez (hggdh2) wrote :

Replacing linux-armada by flash-kernel, after a chat with infinity in the #ubuntu-kernel channel.

affects: linux-armadaxp (Ubuntu) → flash-kernel (Ubuntu)
Revision history for this message
C de-Avillez (hggdh2) wrote :

Assigning to Adam, per his request

Changed in flash-kernel (Ubuntu):
assignee: nobody → Adam Conrad (adconrad)
Revision history for this message
Dave Jones (waveform) wrote :

I believe the analysis that this was caused by both kernel *and* f-k being updated in the same apt run was spot on.

Furthermore, I *think* this was fixed in 3.98ubuntu10 which caused flash-kernel to (attempt to) run on every call to postinst maintscript, not just those involving a trigger (because pending triggers can be dropped on package upgrades. I'll set this to "Fix Released" as I'm fairly confident this is already fixed, but do feel free to set this back to "New" if it's still a issue.

Changed in flash-kernel (Ubuntu):
status: New → Fix Released
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.