[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
** Branch linked: lp:~jibel/ubuntu/raring/flash- kernel/skip_inside_lxc_container -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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
Moving to flash-kernel LXC do not rootfs modifications from the templates. The proposed fix in attached branch do the equivalent of then environment variable FLASH_KERNEL_SKIP and skips flash-kernel run inside LXC container by checking the result of 'running-in-container' ** Package changed: lxc (Ubuntu) = flash-kernel (Ubuntu) ** Changed in: flash-kernel (Ubuntu) Importance: Undecided = High ** Changed in: flash-kernel (Ubuntu) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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
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? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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
It is even more annoying because if you specify apt_upgrade: true in a cloud-config script and there is a package that triggers kernel hooks, then it breaks the provisioning of the lxc guest. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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
it breaks even without that directive. Another test case to run on a day with a package upgrade that will run kernel hooks 1. Create the user-data file with the following content: 88888 #cloud-config locale: en_US.UTF-8 password: ubuntu chpasswd: { expire: False } ssh_pwauth: True ssh_authorized_keys: - SOMEPUBKEY apt_sources: - source: deb http://archive.ubuntu.com/ubuntu raring restricted multiverse - source: deb-src http://archive.ubuntu.com/ubuntu raring restricted multiverse byobu_by_default: system packages: - eatmydata - autopkgtest - dpkg-dev - pbuilder - bzr runcmd: - [sh, -xc, echo '127.0.1.1 autopkgtest' /etc/hosts ] 88888 2. On an ARM host provision an LXC guest with the command (replace user-data by the path to the user-data file you created above) $ sudo lxc-create -n raring-armhf-20130326_094008 -t ubuntu-cloud -- -r raring -a armhf -s daily -u user-data -T https://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-armhf-root.tar.gz 3. Start the container and wait $ sudo lxc-start -n raring-armhf-20130326_09400 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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
@Robie: The right solution here is to do the same hack we have in grub, which is to using running-in-container to detect LXC and skip that part of the code. /etc/kernel/postinst.d/zz-update-grub can be used as an example for that change if you're interested in fixing this issue yourself. I'm also vaguely surprised that flash-kernel uses mkimage but doesn't depend on it, though that's a separate issue :) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[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 kindly tested this attached change, but it didn't work. He said that it still broke in the initramfs-tools postinst as it did before. But I wonder - why is flash-kernel installed at all in the cloud images? Can we fix this by not including flash-kernel at all? ** Patch added: flash-kernel.debdiff https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+attachment/3599005/+files/flash-kernel.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1160360/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs