• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: Commit

KVM host image creator.


Commit MetaInfo

Révisione714e5d0729a48aa291fc2b8cdcd200d14bf5fc2 (tree)
l'heure2020-12-30 00:53:09
AuteurTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Message de Log

Add ntpdate and cout-init setting.

Change Summary

Modification

--- a/create-image
+++ b/create-image
@@ -118,7 +118,7 @@ class ImageCreator
118118 with_rootfs do |dir, devices|
119119 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, *%w(sudo dpkg --remove td-agent smartmontools snmpd lm-sensors arrayprobe megacli megacli-check-change megaclisas megaclisas-status fancontrol))
120120
121- pkgs = %w(apt-transport-https locales-all ntp rsync python-apt git subversion less lv cloud-init tmux screen)
121+ pkgs = %w(apt-transport-https locales-all ntp ntpdate rsync python-apt git subversion less lv cloud-init tmux screen irqbalance)
122122 if File.read("#{dir}/etc/debian_version").to_f >= 9.0
123123 pkgs << 'cloud-guest-utils'
124124 end
@@ -151,6 +151,8 @@ class ImageCreator
151151 c << "\nserver 169.254.169.123 prefer iburst\n"
152152 File.write "#{dir}/etc/ntp.conf", c
153153 end
154+
155+ File.write "#{dir}/etc/cloud/cloud.cfg.d/50_keep_apt_source.cfg" "apt_preserve_sources_list: true\n"
154156 end
155157 end
156158
Afficher sur ancien navigateur de dépôt.