[Bug 1060404] Re: update-grub runs and fails in containers

2014-02-13 Thread Martin Pitt
** Also affects: auto-upgrade-testing Importance: Undecided Status: New ** Changed in: auto-upgrade-testing Status: New = In Progress ** Changed in: auto-upgrade-testing Assignee: (unassigned) = Martin Pitt (pitti) -- You received this bug notification because you are a

[Bug 1060404] Re: update-grub runs and fails in containers

2014-02-13 Thread Launchpad Bug Tracker
** Branch linked: lp:auto-upgrade-testing -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about this bug

[Bug 1060404] Re: update-grub runs and fails in containers

2014-02-13 Thread Martin Pitt
I applied a workaround for trusty in http://bazaar.launchpad.net/~auto- upgrade-testing-dev/auto-upgrade-testing/trunk/revision/92 . Not pretty, but it'll do. ** Changed in: auto-upgrade-testing Status: In Progress = Fix Released -- You received this bug notification because you are a

[Bug 1060404] Re: update-grub runs and fails in containers

2014-02-13 Thread Martin Pitt
Err, I meant for quantal, not for trusty. -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about this bug

[Bug 1060404] Re: update-grub runs and fails in containers

2014-02-12 Thread Martin Pitt
For the record, this hasn't fully been fixed in Quantal: Quantal's /etc/kernel/postinst.d/zz-update-grub does NOT have the container check as introduced in precise's grub2 (1.99-21ubuntu3.9) SRU. This breaks upgrades from quantal to saucy in containers:

[Bug 1060404] Re: update-grub runs and fails in containers

2013-02-06 Thread Stéphane Graber
** Changed in: lxc (Ubuntu Precise) Status: Triaged = Invalid -- 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/1060404 Title: update-grub runs and fails in containers To manage

[Bug 1060404] Re: update-grub runs and fails in containers

2013-02-05 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 1.99-21ubuntu3.9 --- grub2 (1.99-21ubuntu3.9) precise; urgency=low * Also skip update-grub when running in a container (LP: #1060404). -- Colin Watson cjwat...@ubuntu.com Tue, 22 Jan 2013 14:43:32 + ** Changed in: grub2 (Ubuntu

[Bug 1060404] Re: update-grub runs and fails in containers

2013-02-05 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-updates/grub2 -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-28 Thread Bruno Girin
The posted fix works for me too: running Juju on Raring with precise charms using juju-origin: proposed. -- 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/1060404 Title: update-grub runs

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-23 Thread Colin Watson
** Tags removed: verification-needed ** Tags added: verification-done -- 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/1060404 Title: update-grub runs and fails in containers To manage

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-23 Thread Justin van Heerde
Ran into this bug trying out juju, the posted fix for precise (1.99-21ubuntu3.9) works for me. -- 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/1060404 Title: update-grub runs and fails

Re: [Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Colin Watson
On Tue, Jan 22, 2013 at 03:32:12AM -, Sebastian Hoffmann wrote: I can't reproduce fix on precise. I've used ppa:juju/0.6 (r608), grub-pc is ubuntu3.8, juju-origin: proposed, but I still get the same error. Can I please have a transcript of the error you're seeing? There are (at least) two

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Andreas Hasenack
I installed the version from precise-updates on a precise lxc, which didn't have grub-pc before. It worked for me. Here is the output: (...) Processing triggers for ureadahead ... Setting up libfreetype6 (2.4.8-1ubuntu2.1) ... Setting up gettext-base (0.18.1.1-5ubuntu3) ... Setting up libfuse2

Re: [Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Colin Watson
Andreas: Thanks. I already noticed the running-in-container output and fixed it in Debian experimental (which will be merged into raring at some point); it probably isn't worth revising precise for in the absence of another pressing need to touch those lines of code, though. -- You received

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Andreas Hasenack
Agreed. -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about this bug go to:

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Andreas Hasenack
Output when NOT running on LXC (a linode machine in this case): (...) Preparing to replace grub-pc 1.99-21ubuntu3.7 (using .../grub-pc_1.99-21ubuntu3.8_i386.deb) ... Unpacking replacement grub-pc ... Preparing to replace grub-pc-bin 1.99-21ubuntu3.7 (using

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Adam Conrad
Hello Serge, or anyone else affected, Accepted grub2 into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/grub2/1.99-21ubuntu3.9 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-22 Thread Sebastian Hoffmann
I can confirm this fix working on precise for me. -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-21 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/experimental/grub2 -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-21 Thread Sebastian Hoffmann
I can't reproduce fix on precise. I've used ppa:juju/0.6 (r608), grub-pc is ubuntu3.8, juju-origin: proposed, but I still get the same error. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-17 Thread Serge Hallyn
Confirmed in precise, thanks. ** Tags removed: verification-needed ** Tags added: verification-done -- 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/1060404 Title: update-grub runs and

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-16 Thread Clint Byrum
Hello Serge, or anyone else affected, Accepted grub2 into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/grub2/1.99-21ubuntu3.8 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-16 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/grub2 -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-09 Thread Henning Eggers
What is the work-around that I might be missing? Trying out juju with LXC by following https://juju.ubuntu.com/docs/getting-started.html will make you run directly into this bug. Quite a let-down as everything else runs so smoothly with juju ... -- You received this bug notification because you

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-09 Thread Serge Hallyn
@Henning, At one point we thought a workaround was to have devtmpfs mounted in the container. However that is a bad thing to do as changes in the container's /dev will be reflected in the host's /dev. So the only workaround right now (until grub is fixed in precise) is to check (with 'mount')

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Andreas Hasenack
Any idea if this will be fixed for precise, or is it too risky? -- 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/1060404 Title: update-grub runs and fails in containers To manage

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Serge Hallyn
** Description changed: - == - SRU justification for lxc part: - 1. Impact: update-grub fails, causing apt-get updates to fail if there is a new kernel. - 2. Development fix: modify ubuntu templates to mount devtmpfs before starting container - 3. Stable fix: same as

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Serge Hallyn
@Andreas, it needs to be fixed in grub. However the fix in raring should be SRUable. ** Changed in: grub2 (Ubuntu Precise) Importance: Undecided = High ** No longer affects: upstart (Ubuntu) ** No longer affects: upstart (Ubuntu Precise) ** No longer affects: upstart (Ubuntu Quantal) --

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Andreas Hasenack
Right, grub, and for now my workaround is to remove grub-pc if I'm in a 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/1060404 Title: update-grub runs and fails in

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Colin Watson
** Description changed: + [Impact] GRUB upgrades fail in containers. + [Test Case] Upgrade the grub-pc package in a container. + [Regression Potential] In itself, this postinst fix should be quite safe. It's possible it won't solve the whole problem - e.g. linux-image-* upgrades calling

[Bug 1060404] Re: update-grub runs and fails in containers

2013-01-08 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-core-dev/ubuntu/precise/grub2/precise -- 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/1060404 Title: update-grub runs and fails in containers To manage

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-15 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/lxc -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about this bug go to:

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-15 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: grub2 (Ubuntu Precise) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-15 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: upstart (Ubuntu Precise) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-07 Thread Launchpad Bug Tracker
** Branch linked: lp:~cjwatson/ubuntu/quantal/grub2/2.00 -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-07 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 2.00-7ubuntu3 --- grub2 (2.00-7ubuntu3) quantal; urgency=low * If the postinst is running in a container, skip grub-install and all its associated questions (LP: #1060404). * Merge UEFI secure boot tweaks from Fedora: - Don't

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-07 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/grub2 -- 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/1060404 Title: update-grub runs and fails in containers To manage notifications about this bug go to:

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-05 Thread Colin Watson
** Changed in: grub2 (Ubuntu) Status: Confirmed = Fix Committed ** Changed in: grub2 (Ubuntu) Assignee: (unassigned) = Colin Watson (cjwatson) ** Also affects: grub2 (Ubuntu Quantal) Importance: High Assignee: Colin Watson (cjwatson) Status: Fix Committed ** Also

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-05 Thread Clint Byrum
** Also affects: grub2 (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: upstart (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: lxc (Ubuntu Precise) Importance: Undecided Status: New ** Changed in: lxc (Ubuntu Precise)

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-05 Thread Serge Hallyn
** Description changed: - If grub is installed in a container (as happens, for instance, with the - ubuntu-cloud template) then an update of grub or linux-image will cause - update-grub to be run. It tries, finds it can't access the root device, - fails, and causes the update to fail. +

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-04 Thread Serge Hallyn
** Also affects: lxc (Ubuntu) Importance: Undecided Status: New ** Changed in: lxc (Ubuntu) Importance: Undecided = High ** Changed in: lxc (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-04 Thread Serge Hallyn
After talking to cjwatson on irc, there is another option. update-grub is failing because /dev/disk/ is not set up in the container. So we could add an upstart job which runs only in containers, and manually sets up /dev/disk/. This also might help other software which relies on /dev/disk/.

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-04 Thread Serge Hallyn
As hrw pointed out on #ubuntu-devel, a third option is to simply add devtmpfsdev devtmpfs defaults 0 0 to /var/lib/lxc/$c/fstab -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-04 Thread Serge Hallyn
I've pushed a patch to ubuntu:lxc which will cause devtmpfs to be mounted in ubuntu containers. There remains the problem that grub-install then queries the user about installing grub on /dev/vda1 (or whatever is hosting the container fs). ** Changed in: upstart (Ubuntu) Status: New =

[Bug 1060404] Re: update-grub runs and fails in containers

2012-10-04 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 0.8.0~rc1-4ubuntu37 --- lxc (0.8.0~rc1-4ubuntu37) quantal; urgency=low * update 0222-debian-dhcp3-package: use dhcp3-client, not server! * 0224-ubuntu-templates-devtmpfs: mount devtmpfs in ubuntu containers. (LP: #1060404) -- Serge