• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: Commit

KVM host image creator.


Commit MetaInfo

Revision046d12b1fb15f3b79a14ccd9e1f12f104bab0b6f (tree)
Zeit2020-06-09 16:06:37
AutorTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Log Message

Fix grub-pc install.

Ändern Zusammenfassung

Diff

--- a/create-image
+++ b/create-image
@@ -156,7 +156,7 @@ class ImageCreator
156156 if File.exists? "#{dir}/var/lib/dpkg/info/grub-efi-amd64.list"
157157 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt", "remove", "--purge", "-y", "grub-efi-amd64") or raise "Failed to purge grub-efi"
158158 end
159- unless File.exists? "#{dir}/var/lib/dpkg/info/grub-pc.list"
159+ unless File.exists?("#{dir}/var/lib/dpkg/info/grub-pc.list") && File.exists?("#{dir}/usr/sbin/grub-bios-setup")
160160 system("chroot", dir, "apt-get", "-qy", "update") or raise "Failed to install grub-pc"
161161 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
162162 end
Show on old repository browser