[Bug 1160360] Re: flash-kernel failed in an armhf lxc container on ARM: /usr/sbin/flash-kernel: 214: /usr/sbin/flash-kernel: mkimage: not found
Jean-Baptiste Lallement
jean-baptiste at ubuntu.com
Thu Mar 28 13:56:45 UTC 2013
I don't know if there is a sysvinit equivalent. For non-upstart systems,
we could check the cgroup name in /proc/self/cgroup but I think systemd
uses cgroup too so a name there wouldn't guarantee if we are or not in a
container. Another solution would be to check if inode number of / is
not 2 which would work for chroots and lxc.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1160360
Title:
flash-kernel failed in an armhf lxc container on ARM: /usr/sbin/flash-
kernel: 214: /usr/sbin/flash-kernel: mkimage: not found
Status in “flash-kernel” package in Ubuntu:
Triaged
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.img-3.8.0-14-generic
flash-kernel: installing version 3.8.0-14-generic
Generating kernel u-boot image... /usr/sbin/flash-kernel: 214: /usr/sbin/flash-kernel: mkimage: not found
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 127
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
ProcVersionSignature: Ubuntu 3.8.0-13.23-generic 3.8.3
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_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to raring on 2012-01-31 (419 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1160360/+subscriptions
More information about the Ubuntu-sponsors
mailing list