KVM host image creator.Jessica Lockwood
修訂 | aa893a55471adb0ca804981a3b8a9a03ec2a4ace (tree) |
---|---|
時間 | 2019-10-21 12:16:56 |
作者 | Tatsuki SUGIURA <sugi@osdn...> |
Commiter | Tatsuki SUGIURA |
Set DEBIAN_FRONTEND=noninteractive.
@@ -147,9 +147,9 @@ class ImageCreator | ||
147 | 147 | system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "remove", "--purge", "-y", "linux-image-*") |
148 | 148 | system("wget", "-O", "#{dir}/tmp/linux.deb", "http://security.debian.org/debian-security/pool/updates/main/l/linux/linux-image-3.16.0-10-amd64_3.16.74-1_amd64.deb") or raise "Failed to get jessie kernel" |
149 | 149 | system("chroot", dir, "dpkg", "-i", "/tmp/linux.deb") |
150 | - system("chroot", dir, "apt", "install", "-f", "-y") or raise "Failed to install jessie kernel" | |
150 | + system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "install", "-f", "-y") or raise "Failed to install jessie kernel" | |
151 | 151 | else |
152 | - system("chroot", dir, "apt-get", "-y", "install", "linux-image-amd64") | |
152 | + system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "linux-image-amd64") | |
153 | 153 | end |
154 | 154 | |
155 | 155 | puts "Update grub..." |