• R/O
  • HTTP
  • SSH

image-creator: Commit

KVM host image creator.

Commit MetaInfo

Revisionaa893a55471adb0ca804981a3b8a9a03ec2a4ace (tree)
Zeit2019-10-21 12:16:56
AutorTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Log Message

Set DEBIAN_FRONTEND=noninteractive.

Ändern Zusammenfassung


--- a/create-image
+++ b/create-image
@@ -147,9 +147,9 @@ class ImageCreator
147147 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "remove", "--purge", "-y", "linux-image-*")
148148 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"
149149 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"
151151 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")
153153 end
155155 puts "Update grub..."
Show on old repository browser