flash-kernel failed in an armhf lxc container on ARM: /usr/sbin/flash-kernel: 214: /usr/sbin/flash-kernel: mkimage: not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flash-kernel (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Raring armv7l
lxc: 0.9.0~rc1-0ubuntu1
flash-kernel: 3.0~rc.4ubuntu29
initramfs-tools: 0.103ubuntu0.7
When the kernel is upgraded inside an armhf LXC container running on armv7l, the upgrade fails with:
===
Setting up initramfs-tools (0.103ubuntu0.7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
flash-kernel: installing version 3.8.0-14-generic
Generating kernel u-boot image... /usr/sbin/
run-parts: /etc/initramfs/
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
===
TEST CASE:
1. Install an armhf container on an arm host
2. Upgrade initramfs-tools
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: lxc 0.9.0~rc1-0ubuntu1
ProcVersionSign
Uname: Linux 3.8.0-13-generic x86_64
ApportVersion: 2.9.2-0ubuntu4
Architecture: amd64
Date: Tue Mar 26 14:09:34 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to raring on 2012-01-31 (419 days ago)
Related branches
- Loïc Minier: Approve
- Ubuntu branches: Pending requested
-
Diff: 63 lines (+23/-0)4 files modifieddebian/changelog (+6/-0)
initramfs-hook/flash-kernel (+6/-0)
initramfs-tools/hooks/flash_kernel_set_root (+6/-0)
kernel-hook/zz-flash-kernel (+5/-0)
This is interesting - thanks Jean-Baptiste.
So do we need to:
- Not have a kernel image package installed in the container in the first place?
- Arrange for flash-kernel not to be run inside a container (kernel postinst? update-initramfs postinst?)?
- Make flash-kernel depend on u-boot-tools instead of merely suggesting it?