1. 07 Jul, 2014 8 commits
  2. 03 Jul, 2014 3 commits
  3. 02 Jul, 2014 1 commit
  4. 30 Jun, 2014 5 commits
  5. 27 Jun, 2014 5 commits
  6. 25 Jun, 2014 1 commit
  7. 24 Jun, 2014 4 commits
    • Reduce duplication in new style configs · 5b99af00
      Stéphane Graber authored
      This is a rather massive cleanup of config/templates/*
      
      As new templates were added, I've noticed that we pretty much all share
      the tty/pts configs, some capabilities being dropped and most of the
      cgroup configuration. All the userns configs were also almost identical.
      
      As a result, this change introduces two new files:
       - common.conf.in
       - userns.conf.in
      
      Each is included by the relevant <template>.<type>.conf.in templates,
      this means that the individual per-template configs are now overlays on
      top of the default config.
      
      Once we see a specific key becoming popular, we ought to check whether
      it should also be applied to the other templates and if more than 50% of
      the templates have it set to the same value, that value ought to be
      moved to the master config file and then overriden for the templates
      that do not use it.
      
      This change while pretty big and scary, shouldn't be very visible from a
      user point of view, the actual changes can be summarized as:
       - Extend clonehostname to work with Debian based distros and use it for
         all containers.
       - lxc.pivotdir is now set to lxc_putold for all templates, this means
         that instead of using /mnt in the container, lxc will create and use
         /lxc_putold instead. The reason for this is to avoid failures when the
         user bind-mounts something else on top of /mnt.
       - Some minor cgroup limit changes, the main one I remember is
         /dev/console now being writable by all of the redhat based containers.
         The rest of the set should be identical with additions in the per-distro
         ones.
       - Drop binfmtmisc and efivars bind-mounts for non-mountall based
         unpriivileged containers as I assumed they got those from copy/paste
         from Ubuntu and not because they actually need those entries. (If I'm
         wrong, we probably should move those to userns.conf then).
      
      Additional investigation and changes to reduce the config delta between
      distros would be appreciated. In practice, I only expect lxc.cap.drop
      and lxc.mount.entry to really vary between distros (depending on the
      init system, the rest should be mostly common.
      
      Diff from the RFC:
       - Add archlinux to the mix
       - Drop /etc/hostname from the clone hook
      Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
    • Prevent write_config from corrupting container config · fd986e08
      Alexander Vladimirov authored
      write_config doesn't check the value sig_name function returns,
      this causes write_config to produce corrupted container config when
      using non-predefined signal names.
      Signed-off-by: 's avatarAlexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
    • Update Arch Linux template and add common configuration files · c194ffc1
      Alexander Vladimirov authored
      Move common container configuration entries into template config.
      Remove unnecessary service symlinking and configuration entries, as well as
      guest configs and other redundant configuration, fix minor script bugs.
      Clean up template command line, add -d option to allow disabling services.
      Also enable getty's on all configured ttys to allow logins via lxc-console,
      set lxc.tty value corresponding to default Arch /etc/securetty configuration.
      
      This patch simplifies Arch Linux template a bit, while fixing some
      longstanding issues. It also provides common configuration based on
      files provided for Fedora templates.
      Signed-off-by: 's avatarAlexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  8. 23 Jun, 2014 2 commits
  9. 20 Jun, 2014 10 commits
  10. 18 Jun, 2014 1 commit