1. 10 May, 2010 6 commits
    • 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>
    • update INSTALL file · 2f462f4b
      Daniel Lezcano authored
      "lxc configure does not exist. You need to run ./autogen.sh to create it.
      I think it needs to either be documented in INSTALL or you provide ./configure"
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
      Reported-by: 's avatarJamal Hadi Salim <hadi@cyberus.ca>
    • factor out pivot_root code · 0b7a8353
      Daniel LEzcano authored
      Clean up and factor a bit the pivot_root code.
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
    • fix pivot_root temporary directory · 1b09f2c0
      Daniel Lezcano authored
      First of all, when trying to start a container in a read-only root
      lxc-start complains:
        lxc-start: Read-only file system - can't make temporary mountpoint
      
      This is in conf.c:setup_rootfs_pivot_root() function.  That function
      uses optional parameter "lxc.pivotdir", or creates (and later removes)
      a temporary directory for pivot_root.  Obviously there's no way to
      create a directory in a read-only filesystem.
      
      But lxc.pivotdir does not work either. In the function mentioned above
      it is used with leading dot (eg. if I specify "lxc.pivotdir=pivot" in
      the config file the pivot_root() syscall will be made to ".pivot" with
      leading dot, not to "pivot"), but later on it is used without that dot,
      and fails:
      
        lxc-start: No such file or directory - failed to open /pivot/proc/mounts
        lxc-start: No such file or directory - failed to read or parse mount list '/pivot/proc/mounts'
        lxc-start: failed to pivot_root to '/stage/t'
      
      (that's with "lxc.pivotdir = pivot" in the config file).  After symlinking
      pivot to .pivot it still fails:
      
        lxc-start: Device or resource busy - could not unmount old rootfs
        lxc-start: failed to pivot_root to '/stage/t'
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
      Reported-by: 's avatarMichael Tokarev <mjt@tls.msk.ru>
    • Fix console infinite loop · 5c294060
      Daniel Lezcano authored
      When the client console exits, the mainloop goes in an infinite loop
      as the handler is not removed and we are notified from the disconnection
      indefinitely.
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
  2. 07 May, 2010 2 commits
  3. 29 Apr, 2010 18 commits
  4. 08 Apr, 2010 7 commits
  5. 02 Apr, 2010 2 commits
  6. 22 Mar, 2010 5 commits