yellow team mailing list archive
-
yellow team
-
Mailing list archive
-
Message #00718
[Merge] lp:~frankban/lpsetup/fstab-tweak into lp:lpsetup
Francesco Banconi has proposed merging lp:~frankban/lpsetup/fstab-tweak into lp:lpsetup.
Requested reviews:
Launchpad Yellow Squad (yellow)
For more details, see:
https://code.launchpad.net/~frankban/lpsetup/fstab-tweak/+merge/102482
== Changes ==
We need to add a line to the container's fstab in order to work around
bug 974584, still affecting lucid lxc.
The lxc-install sub command adds the line to fstab right after the container is created.
--
https://code.launchpad.net/~frankban/lpsetup/fstab-tweak/+merge/102482
Your team Launchpad Yellow Squad is requested to review the proposed merge of lp:~frankban/lpsetup/fstab-tweak into lp:lpsetup.
=== modified file 'lpsetup/subcommands/lxcinstall.py'
--- lpsetup/subcommands/lxcinstall.py 2012-04-10 16:36:15 +0000
+++ lpsetup/subcommands/lxcinstall.py 2012-04-18 10:15:24 +0000
@@ -134,6 +134,13 @@
dst = get_container_path(lxc_name, '/root/.ssh/')
mkdirs(dst)
shutil.copy(user_authorized_keys, dst)
+ # XXX 2012-04-18 frankban bug=974584:
+ # Add a line to the container's fstab to be able to create semaphores
+ # in lxc. This workaround needs to be removed once the lxc bug is
+ # resolved for lucid containers too.
+ file_append(
+ '/var/lib/lxc/{0}/fstab'.format(lxc_name),
+ 'none dev/shm tmpfs defaults 0 0\n')
def start_lxc(lxc_name):