KVM host image creator.
Revisão | 210c84b64c28ee13365d0c77853080dadb4e4e9f (tree) |
---|---|
Hora | 2020-11-22 23:34:56 |
Autor | Tatsuki SUGIURA <sugi@osdn...> |
Commiter | Tatsuki SUGIURA |
Make sure to install dhcp client.
@@ -149,8 +149,9 @@ class ImageCreator | ||
149 | 149 | 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" |
150 | 150 | system("chroot", dir, "dpkg", "-i", "/tmp/linux.deb") |
151 | 151 | 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") | |
152 | 153 | 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") | |
154 | 155 | end |
155 | 156 | |
156 | 157 | puts "Update grub..." |