Works for me now in oneiric-proposed.

** Tags removed: verification-needed
** Tags added: verification-done

** Description changed:

  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.
+    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.  (Note that you must add -proposed and upgrade inside the 
chroot!)
  5. Regression potential: none
  =====================================

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to