1. 22 Aug, 2014 5 commits
  2. 19 Aug, 2014 1 commit
    • Update plamo template · ea00a202
      TAMUKI Shoichi authored
      - If "installpkg" command does not exist, lxc-plamo temporarily
        install the command with static linked tar command into the lxc
        cache directory.  The tar command does not refer to passwd/group
        files, which means that only a few files/directories are extracted
        with wrong user/group ownership.  To avoid this, the installpkg
        command now uses the standard tar command in the system.
      - Change mode to 666 for $rootfs/dev/null to allow write access for
        all users.
      - Small fix in usage message.
      Signed-off-by: 's avatarTAMUKI Shoichi <tamuki@linet.gr.jp>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Acked-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
  3. 18 Aug, 2014 5 commits
  4. 16 Aug, 2014 14 commits
  5. 15 Aug, 2014 1 commit
  6. 08 Aug, 2014 11 commits
  7. 06 Aug, 2014 1 commit
  8. 04 Aug, 2014 2 commits
    • Add lxc.net to the dist tarball · 281b8436
      Stéphane Graber authored
      Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
    • unexpanded config file: turn into a string · 6b0d5538
      Serge Hallyn authored
      Originally, we only kept a struct lxc_conf representing the current
      container configuration.  This was insufficient because lxc.include's
      were expanded, so a clone or a snapshot would contain the expanded
      include file contents, rather than the original "lxc.include".  If
      the host's include files are updated, clones and snapshots would not
      inherit those updates.
      
      To address this, we originally added a lxc_unexp_conf, which mirrored
      the lxc_conf, except that lxc.include was not expanded.
      
      This has its own cshortcomings, however,  In particular, if a lxc.include
      has a lxc.cgroup setting, and you use the api to say:
      
      c.clear_config_item("lxc.cgroup")
      
      this is not representable in the lxc_unexp_conf.  (The original problem,
      which was pointed out to me by stgraber, was slightly different, but
      unlike this problem it was not unsolvable).
      
      This patch changes the unexpanded configuration  to be a textual
      representation of the configuration.  This allows us *order* the
      configuration commands, which is what was not possible using the
      struct lxc_conf *lxc_unexp_conf.
      
      The write_config() now becomes a simple fwrite.  However, lxc_clone
      is slightly complicated in parts, the worst of which is the need to
      rewrite the network configuration if we are changing the macaddrs.
      
      With this patch, lxc-clone and clear_config_item do the right thing.
      lxc-test-saveconfig and lxc-test-clonetest both pass.
      
      There is room for improvement - multiple calls to
      
      c.append_config_item("lxc.network.link", "lxcbr0")
      
      will result in multiple such lines in the configuration file.  In that
      particular case it is harmless.  There may be cases where it is not.
      
      Overall, this should be a huge improvement in terms of correctness.
      
      Changelog: Aug 1: updated to current lxc git head.  All lxc-test* and
         python api test passed.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>