lxc-create -t ubuntu with user binding complains about any missing groups
Bug #813403 reported by
Robert Collins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
I'm on oneiric, up to date. I ran
sudo lxc-create -t ubuntu -n lucid-test-lp -f /etc/lxc/local.conf -- -r lucid -a i386 -b robertc
and it complained (but still completed):
adduser: The group `libvirtd' does not exist.
'ubuntu' template installed
'lucid-test-lp' created
Related branches
Changed in lxc (Ubuntu): | |
importance: | Undecided → Low |
summary: |
- lxc-create -t ubuntu complains about missing group libvirtd + lxc-create -t ubuntu with user binding complains about any missing + groups |
To post a comment you must log in.
This one is due to the -b option. We blindly add all of robertc's groups (on the host) to the robertc user in the container. This fails for groups which don't exist in the container.
We could do a check, for each group, whether it exists in the container. I think the error message may actually be a helpful reminder in some cases, so I will mark this bug wontfix. If you feel I'm looking at it wrongly and we should avoid the error message, then please feel free to change it to confirmed.