[Bug 927883] Re: lxc-execute fails due to missing /dev/shm

Serge Hallyn 927883 at bugs.launchpad.net
Tue Feb 7 01:35:24 UTC 2012


** Description changed:

- Create it.
+ The 'lxc-init' (a lightweight init process used by lxc-execute in place
+ of upstart etc) tries to mount /dev/shm during startup.  If that fails
+ (for instance /dev/shm does not exist) then it aborts execution and
+ returns -1.  This is unreasonable as very few applications actually need
+ /dev/shm.
+ 
+ =====================================
+ SRU Justification:
+ 1. Impact: lxc-execute fails
+ 2. Development fix: ignore failure of mounting /dev/shm.
+ 3. Stable fix: same as development fix
+ 4. Test case (on a precise host):
+    1. lxc-create -t ubuntu -n test1 -- -r oneiric
+    2. chroot /var/lib/lxc/test1/rootfs apt-get install lxc
+    3. rm -rf /var/lib/lxc/test1/rootfs/dev/shm  # probably not needed
+    3. lxc-execute -n test1 -- /bin/ls
+    4. echo $?
+    This will return 255 without the fix, and return 0 (and show a directory listing) with.
+ 5. Regression potential: none
+ =====================================

-- 
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/927883

Title:
  lxc-execute fails due to missing /dev/shm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/927883/+subscriptions



More information about the Ubuntu-server-bugs mailing list