• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: Commit

KVM host image creator.


Commit MetaInfo

Révisione6bc7e01175ac12e06a811c8af995451db289773 (tree)
l'heure2019-09-24 11:27:56
AuteurTatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Message de Log

Try to install grub-pc...

Change Summary

Modification

--- a/create-image
+++ b/create-image
@@ -140,6 +140,8 @@ class ImageCreator
140140 File.write "#{dir}/boot/grub/grub.cfg", grubconf.gsub(/#{old_uuid}/, rootfs_uuid)
141141 end
142142 else
143+ system("chroot", dir, "apt-get", "-qy", "update")
144+ system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
143145 File.write "#{dir}/boot/grub/grub.cfg", <<-EOC
144146 set timeout=5
145147 insmod part_gpt
Afficher sur ancien navigateur de dépôt.