KVM host image creator.Jessica Lockwood
リビジョン | fbea085325051b3b6790b723e6496303f859e5c6 (tree) |
---|---|
日時 | 2019-09-30 17:39:58 |
作者 | Tatsuki Sugiura <sugi@nemu...> |
コミッター | Tatsuki Sugiura |
Fix grub install condition.
@@ -144,7 +144,7 @@ class ImageCreator | ||
144 | 144 | end |
145 | 145 | |
146 | 146 | puts "Update grub..." |
147 | - unless File.exists? "#{dir}/boot/grub/grub.cfg" | |
147 | + unless File.exists? "#{dir}/usr/sbin/grub-mkconfig" | |
148 | 148 | system("chroot", dir, "apt-get", "-qy", "update") or raise "Failed to install grub-pc" |
149 | 149 | system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc") |
150 | 150 | end |