• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: 提交

KVM host image creator.


Commit MetaInfo

修订版e6bc7e01175ac12e06a811c8af995451db289773 (tree)
时间2019-09-24 11:27:56
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Try to install grub-pc...

更改概述

差异

--- 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
Show on old repository browser