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:
dc529c3
)
Try to install grub-pc...
author
Tatsuki Sugiura
<sugi@nemui.org>
Tue, 24 Sep 2019 02:27:56 +0000
(11:27 +0900)
committer
Tatsuki Sugiura
<sugi@nemui.org>
Tue, 24 Sep 2019 02:27:56 +0000
(11:27 +0900)
create-image
patch
|
blob
|
history
diff --git
a/create-image
b/create-image
index
c2e6139
..
85c8384
100755
(executable)
--- a/
create-image
+++ b/
create-image
@@
-140,6
+140,8
@@
class ImageCreator
File.write "#{dir}/boot/grub/grub.cfg", grubconf.gsub(/#{old_uuid}/, rootfs_uuid)
end
else
+ system("chroot", dir, "apt-get", "-qy", "update")
+ system({'DEBIAN_FRONTEND' => 'noninteractive'}, "chroot", dir, "apt-get", "-y", "install", "grub-pc")
File.write "#{dir}/boot/grub/grub.cfg", <<-EOC
set timeout=5
insmod part_gpt