• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: Commit

KVM host image creator.


Commit MetaInfo

Revision210c84b64c28ee13365d0c77853080dadb4e4e9f (tree)
Zeit2020-11-22 23:34:56
AutorTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Log Message

Make sure to install dhcp client.

Ändern Zusammenfassung

Diff

--- a/create-image
+++ b/create-image
@@ -149,8 +149,9 @@ class ImageCreator
149149 system("wget", "-O", "#{dir}/tmp/linux.deb", "http://security-cdn.debian.org/debian-security/pool/updates/main/l/linux/linux-image-3.16.0-10-amd64_3.16.81-1_amd64.deb") or raise "Failed to get jessie kernel"
150150 system("chroot", dir, "dpkg", "-i", "/tmp/linux.deb")
151151 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "install", "-f", "-y") or raise "Failed to install jessie kernel"
152+ system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "-y", "install", "isc-dhcp-client")
152153 else
153- system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "--allow-unauthenticated", "install", "linux-image-amd64")
154+ system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "--allow-unauthenticated", "install", "linux-image-amd64", "isc-dhcp-client")
154155 end
155156
156157 puts "Update grub..."
Show on old repository browser