• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: Commit

KVM host image creator.


Commit MetaInfo

Revisãoeeef32301ae67661655f8ff72fa6c96eaa83bcef (tree)
Hora2020-06-28 01:27:41
AutorTatsuki SUGIURA <sugi@osdn...>
CommiterTatsuki SUGIURA

Mensagem de Log

Fix grub-pc detection for squeeze...

Mudança Sumário

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") && File.exists?("#{dir}/usr/sbin/grub-bios-setup")
159+ if !File.exists?("#{dir}/var/lib/dpkg/info/grub-pc.list") || !(File.exists?("#{dir}/usr/sbin/grub-bios-setup") || File.exists?("#{dir}/usr/sbin/grub-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