lib/dev-lxc.rb in dev-lxc-1.6.3 vs lib/dev-lxc.rb in dev-lxc-1.7.0
- old
+ new
@@ -19,12 +19,12 @@
options = ["-d", "ubuntu", "-r", "lucid", "-a", "amd64"]
when "p-ubuntu-1204"
options = ["-d", "ubuntu", "-r", "precise", "-a", "amd64"]
when "p-ubuntu-1404"
options = ["-d", "ubuntu", "-r", "trusty", "-a", "amd64"]
- when "p-ubuntu-1504"
- options = ["-d", "ubuntu", "-r", "vivid", "-a", "amd64"]
+ when "p-ubuntu-1604"
+ options = ["-d", "ubuntu", "-r", "xenial", "-a", "amd64"]
when "p-centos-5"
template = "centos"
options = ["-R", "5"]
when "p-centos-6"
options = ["-d", "centos", "-r", "6", "-a", "amd64"]
@@ -67,13 +67,11 @@
when "p-ubuntu-1204", "p-ubuntu-1404"
platform_image.run_command("apt-get update")
platform_image.run_command("apt-get install -y standard^ server^ vim-nox emacs23-nox tree openssh-server")
IO.write("#{platform_image.config_item('lxc.rootfs')}/etc/rc.local", "#!/usr/bin/env bash\n\n/usr/sbin/dpkg-reconfigure openssh-server\n")
FileUtils.chmod(0755, "#{platform_image.config_item('lxc.rootfs')}/etc/rc.local")
- when "p-ubuntu-1504"
+ when "p-ubuntu-1604"
platform_image.run_command("apt-get update")
- # install policykit-1 first Ref: https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1447654/
- platform_image.run_command("apt-get install -y policykit-1")
platform_image.run_command("apt-get install -y standard^ server^ vim-nox emacs24-nox tree openssh-server")
IO.write("#{platform_image.config_item('lxc.rootfs')}/etc/rc.local", "#!/usr/bin/env bash\n\n/usr/sbin/dpkg-reconfigure openssh-server\n")
FileUtils.chmod(0755, "#{platform_image.config_item('lxc.rootfs')}/etc/rc.local")
when "p-centos-5"
# downgrade openssl temporarily to overcome an install bug