Oneiric fails to boot after upgrade from Natty if /etc/fstab contains a cgroup mount entry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcgroup (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Oneiric |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I used LXC on this machine. Therefore I had to add a cgroup mount and added the recommended line
none /cgroup cgroup defaults 0 0
to /etc/fstab. This results in an unbootable system after upgrade to Oneiric. Apparently the boot just stops when it comes to mounting the entries in /etc/fstab.
I would expect that either
a) the system doesn't hang when this is added to /etc/fstab
b) on upgrade the package detects this condition and removes/comments the according line in /etc/fstab so that the system is still bootable.
SRU Justification:
1: Impact: failure to boot!
2: Development fix: don't start cgroup-lite if cgroups are mounted by fstab
3: Stable fix: same as development fix
4: Test case:
a. add cgroup entry to /etc/fstab, i.e.
mkdir /cgroup
echo "cgroup /cgroup cgroup defaults 0 0" > /etc/fstab
b. install cgroup-lite
c. reboot
5: Regression potential: if the patch were wrong, we might end up with cgroup-lite
not mounting cgroups when it should.
Related branches
- Stéphane Graber: Pending requested
-
Diff: 33 lines (+15/-0)2 files modifieddebian/cgroup-lite.cgroups-mount (+8/-0)
debian/changelog (+7/-0)
Changed in libcgroup (Ubuntu): | |
assignee: | Stéphane Graber (stgraber) → Serge Hallyn (serge-hallyn) |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
Thanks for submitting this bug.
I suspect this bug is actually in cgroup-lite. When I try to reproduce with libcgroup, cgroup-bin actually fails to install. Can you confirm (dpkg -l | grep cgroup) that cgroup-lite is the one installed? If so, I'll re-target.