fix GRUB config to add a HOS menu entry

This commit is contained in:
Josh Holtrop 2020-10-15 20:01:40 -04:00
parent 9befd553eb
commit a9a2f6dcaf

View File

@ -39,10 +39,12 @@ EOF
end end
File.open("#{tmpdir}/ext2/grub.cfg", "wb") do |fh| File.open("#{tmpdir}/ext2/grub.cfg", "wb") do |fh|
fh.write(<<EOF) fh.write(<<EOF)
menuentry "HOS" {
insmod part_gpt insmod part_gpt
insmod multiboot insmod multiboot
set root=(hd0,gpt2) set root=(hd0,gpt2)
multiboot /hos.elf multiboot /hos.elf
}
EOF EOF
end end
system(*%W[genext2fs -b #{HOS_PART_SIZE * 1024} -d #{tmpdir}/ext2 #{tmpdir}/ext2.part]) system(*%W[genext2fs -b #{HOS_PART_SIZE * 1024} -d #{tmpdir}/ext2 #{tmpdir}/ext2.part])