• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: 提交

KVM host image creator.


Commit MetaInfo

修订版fbea085325051b3b6790b723e6496303f859e5c6 (tree)
时间2019-09-30 17:39:58
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Fix grub install condition.

更改概述

差异

--- a/create-image
+++ b/create-image
@@ -144,7 +144,7 @@ class ImageCreator
144144 end
145145
146146 puts "Update grub..."
147- unless File.exists? "#{dir}/boot/grub/grub.cfg"
147+ unless File.exists? "#{dir}/usr/sbin/grub-mkconfig"
148148 system("chroot", dir, "apt-get", "-qy", "update") or raise "Failed to install grub-pc"
149149 system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
150150 end
Show on old repository browser