1. 28 May, 2010 5 commits
  2. 27 May, 2010 7 commits
  3. 26 May, 2010 10 commits
  4. 24 May, 2010 1 commit
  5. 19 May, 2010 4 commits
  6. 18 May, 2010 2 commits
  7. 12 May, 2010 7 commits
  8. 10 May, 2010 4 commits
    • no need to use a temporary directory for pivoting · 25368b52
      Ferenc Wagner authored
      Ferenc Wagner <wferi@niif.hu> writes:
      
      > Daniel Lezcano <dlezcano@fr.ibm.com> writes:
      >
      >> Ferenc Wagner wrote:
      >>
      >>> Daniel Lezcano <daniel.lezcano@free.fr> writes:
      > >>>> Ferenc Wagner wrote:
      > >>>>
      > >>>>> While playing with lxc-start, I noticed that /tmp is infested by
      > >>>>> empty lxc-r* directories: [...] Ok, this name comes from lxc-rootfs
      > >>>>> in conf.c:setup_rootfs.  After setup_rootfs_pivot_root returns, the
      > >>>>> original /tmp is not available anymore, so rmdir(tmpname) at the
      > >>>>> bottom of setup_rootfs can't achieve much.  Why is this temporary
      > >>>>> name needed anyway?  Is pivoting impossible without it?
      > >>>>
      > >>>> That was put in place with chroot, before pivot_root, so the distro's
      > >>>> scripts can remount their '/' without failing.
      > >>>>
      > >>>> Now we have pivot_root, I suppose we can change that to something cleaner...
      >>> Like simply nuking it?  Shall I send a patch?
      >>
      >> Sure, if we can kill it, I will be glad to take your patch :)
      >
      > I can't see any reason why lxc-start couldn't do without that temporary
      > recursive bind mount of the original root.  If neither do you, I'll
      > patch it out and see if it still flies.
      
      For my purposes the patch below works fine.  I only run applications,
      though, not full systems, so wider testing is definitely needed.
      
      Thanks,
      Feri.
      
      >From 98b24c13f809f18ab8969fb4d84defe6f812b25c Mon Sep 17 00:00:00 2001
      Date: Thu, 6 May 2010 14:47:39 +0200
      
      That was put in place before lxc-start started using pivot_root, so
      the distro scripts can remount / without problems.
      Signed-off-by: 's avatarFerenc Wagner <wferi@niif.hu>
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
    • Make dynamic busybox supported · bf6cc736
      Daniel Lezcano authored
      Bind mount host library path.
      Weird but some distro provide busybox as a dynamically linked binary.
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
    • make lxc-checkconfig more explicit · 8208b295
      Guillaume Zitta authored
      With a friend, we installed lxc on his server.
      We spend 1 hour on the kernel config because we didn't knew :
      - that lxc-checkconfig is a bash script and it can check a config before
      running it
      - which kernel config item whas not good
      - that CONFIG_SECURITY_FILE_CAPABILITIES is obsolete since 2.6.33
      
      So, here is a patch for lxc-checkconfig that could save time for lxc newbies
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
      Modified-by: 's avatarDaniel Lezcano <daniel.lezcano@free.fr>
      Signed-off-by: 's avatarGuillaume Zitta <lxc@zitta.fr>
    • add missing /dev/pts directory · 10e657e5
      Daniel Lezcano authored
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>