1. 10 Sep, 2013 3 commits
  2. 09 Sep, 2013 1 commit
  3. 06 Sep, 2013 4 commits
  4. 05 Sep, 2013 12 commits
  5. 04 Sep, 2013 2 commits
  6. 03 Sep, 2013 6 commits
  7. 30 Aug, 2013 7 commits
  8. 29 Aug, 2013 1 commit
    • start.c: handle potential signal flood · 80507ee8
      Serge Hallyn authored
      Signalfd does not guarantee that we'll get an event for every signal.
      So if 3 tasks exit at the same time, we may get only one sigchld
      event.  Therefore, in signal_handler(), always check whether init has
      exited.  Do with with WNOWAIT so that we can still wait4 to cleanup
      the init after lxc_poll() exists (rather than complicating the code).
      
      Note - there is still a race in the kernel which can cause the
      container init to become a defunct child of the host init (!).  This
      doesn't solve that, but is a potential (if very unlikely) race which
      apw pointed out while we were trying to create a reproducer for the
      kernel bug.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  9. 26 Aug, 2013 3 commits
  10. 22 Aug, 2013 1 commit
    • hooks/ubuntu-cloud-prep: add hostname to meta-data · cb0c6c02
      Scott Moser authored
      prior to my enabling of the clone hook, the setting of the hostname
      was being done by writing to /etc/hostname.  Instead of relying on that
      we're now writing 'local-hostname' into the metadata for the instance.
      
      cloud-init then reads this and sets the hostname properly.
      
      We are also writing /etc/hostname with the new hostname explicitly.  This is
      useful/necessary because on network bringup of eth0, dhclient will submit its
      hosname.  The updating done by cloud-init occurs to late, and thus
      the dhcp request goes out with the un-configured hostname and dns doens't
      work correctly.
      Signed-off-by: 's avatarScott Moser <smoser@ubuntu.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>