1. 15 Jul, 2009 2 commits
  2. 13 Jul, 2009 2 commits
  3. 10 Jul, 2009 3 commits
    • create the lxc directory with lxc-setcap · 74741dcc
      Daniel Lezcano authored
      There are several cases:
       * we run the lxc-create as root, the @path@/var/lib/lxc will be created
       * we run the lxc-create as non-root, the creation of the directory will
         fail with "permission denied", so we should call lxc-setcap before
       * we run lxc-setcap (always as root), we create the directory and set
         the permission for everyone.
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
    • don't create the lxc directory at rpm installation · 92fc52d3
      Daniel Lezcano authored
      Don't create the directory when we install the lxc package.
      This is handled by lxc-create.
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
    • Remove install-exec-local rule · 3e3bf8ae
      Ryousei Takano authored
      Hi Daniel and all,
      
      I am trying to run LXC on the CentOS 5.3 and the Linux kernel 2.6.30.
      I found a problem with running the rpmbuild command.  The error message
      is shown below:
      
      $ rpmbuild -bb lxc.spec
      	<snip>
       /usr/bin/install -c 'lxc-setcap' '/var/tmp/lxc-0.6.2-build/usr/bin/lxc-setcap'
       /usr/bin/install -c 'lxc-version' '/var/tmp/lxc-0.6.2-build/usr/bin/lxc-version'
      mkdir: cannot create directory `/var/lib/lxc': Permission denied
      make[3]: *** [install-exec-local] Error 1
      make[3]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src/lxc'
      make[2]: *** [install-am] Error 2
      make[2]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src/lxc'
      make[1]: *** [install-recursive] Error 1
      make[1]: Leaving directory `/home/ryousei/rpm/BUILD/lxc-0.6.2/src'
      make: *** [install-recursive] Error 1
      error: Bad exit status from /var/tmp/rpm-tmp.26914 (%install)
      
      RPM build errors:
          Bad exit status from /var/tmp/rpm-tmp.26914 (%install)
      
      This patch removes 'install-exec-local' rule in Makefile.  It is not necessary, 
      and it causes rpmbuild failure on the CentOS 5.3.
      Signed-off-by: 's avatarRyousei Takano <takano-ryousei@aist.go.jp>
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
  4. 07 Jul, 2009 3 commits
  5. 03 Jul, 2009 1 commit
  6. 02 Jul, 2009 6 commits
  7. 01 Jul, 2009 2 commits
  8. 25 Jun, 2009 5 commits
  9. 24 Jun, 2009 1 commit
    • lxc-fedora fixes · 4f3f0d4b
      Matty authored
      Howdy,
      
      I was playing around with LXC containers this past weekend, and
      noticed a couple of issues with the lxc-fedora script:
      
      #1: Line 96 should be ${ROOTFS}/etc/sysconfig/network instead of
      ${ROOTFS}/sysconfig/network
      
      #2 Line 249 contains a reference to $PKG, which isn't used in the
      program. I adjusted the variable to point to the correct package, and
      use this in the calls to yumdownloader:
      
          PKG="${DISTRO}-release.noarch.rpm"
                         .....
          yumdownloader --destdir="${CACHE}/partial" "${PKG}"
      
      #3 The $CACHE/partial path is escaped unnecessarily:
      
         RPM="rpm --root \"${CACHE}/partial\""
      
      #4 The program assumes yumdownloader will work, which isn't always the
      case. I added an if statement to check the return code:
      
      
         echo "Downloading distribution release file ${PKG}"
         yumdownloader --destdir="${CACHE}/partial" "${PKG}"
         RESULT=$?
      
         if [ "${RESULT}" != "0" ]; then
             echo "Enable to download the distribution release file"
             exit 1
         fi
      
      #5 The package name passed to yumdownloader is incorrect:
      
         yumdownloader --destdir="${CACHE}/partial" "${DISTRO}-release.noarch.rpm"
      
         On Fedora 10 and 11, this evaluates to:
      
         fedora-release.noarch.rpm
      
         When we need it to evaluate to:
      
         fedora-{RELEASE_VER}.release.noarch
      
         This is fixed in the PKG variable listed above.
      
      A patch that addresses these issues is attached.
      
      Thanks,
      - Ryan
      Signed-off-by: 's avatarMatty <matty91@gmail.com>
      Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
  10. 12 Jun, 2009 2 commits
  11. 10 Jun, 2009 5 commits
  12. 07 Jun, 2009 6 commits
  13. 29 May, 2009 1 commit
  14. 28 May, 2009 1 commit