touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #116692
[Bug 930652] Re: lxc & swapoff: Not superuser
We're not going to fix this in LXC as the failure is obviously intended.
However with lxcfs we can now render /proc/swaps in a more consistent
way, including hiding swap for containers which shouldn't have any swap
access.
** Changed in: lxc (Ubuntu)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/930652
Title:
lxc & swapoff: Not superuser
Status in lxc package in Ubuntu:
Won't Fix
Bug description:
inside the container during poweroff process i get such error:
* Deactivating swap...
swapoff: Not superuser. [fail]
---------------------------------------------------------------------------
root@relay1:~# lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
root@relay1:~# apt-cache policy lxc
lxc:
Installed: 0.7.5-0ubuntu8.3
Candidate: 0.7.5-0ubuntu8.3
Version table:
*** 0.7.5-0ubuntu8.3 0
500 http://ru.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages
100 /var/lib/dpkg/status
0.7.5-0ubuntu8 0
500 http://ru.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
---------------------------------------------------------------------------
root@relay1:~# lxc-start -n sbc
Ubuntu 11.10 sbc /dev/console
sbc login: root
Password:
Last login: Sat Feb 11 10:52:03 UTC 2012 on tty1
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-15-server x86_64)
* Documentation: https://help.ubuntu.com/11.10/serverguide/C
root@sbc:~# poweroff
Broadcast message from root@sbc
(/dev/console) at 14:05 ...
The system is going down for power off NOW!
root@sbc:~# * Asking all remaining processes to terminate... [ OK ]
* All processes ended within 1 seconds.... [ OK ]
* Deconfiguring network interfaces... [ OK ]
* Deactivating swap... swapoff: Not superuser.
[fail]
* Unmounting weak filesystems... [ OK ]
umount: /var/run: not mounted
mount: / is busy
* Will now halt
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/930652/+subscriptions