OSDN Git Service
(root)
/
osdn-codes
/
image-creator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37ae28d
)
Fix grub install condition.
author
Tatsuki Sugiura
<sugi@nemui.org>
Mon, 30 Sep 2019 08:39:58 +0000
(17:39 +0900)
committer
Tatsuki Sugiura
<sugi@nemui.org>
Mon, 30 Sep 2019 08:39:58 +0000
(17:39 +0900)
create-image
patch
|
blob
|
history
diff --git
a/create-image
b/create-image
index
b6fc7f6
..
04fe0ee
100755
(executable)
--- a/
create-image
+++ b/
create-image
@@
-144,7
+144,7
@@
class ImageCreator
end
puts "Update grub..."
end
puts "Update grub..."
- unless File.exists? "#{dir}/
boot/grub/grub.cf
g"
+ unless File.exists? "#{dir}/
usr/sbin/grub-mkconfi
g"
system("chroot", dir, "apt-get", "-qy", "update") or raise "Failed to install grub-pc"
system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
end
system("chroot", dir, "apt-get", "-qy", "update") or raise "Failed to install grub-pc"
system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
end