fix GRUB config to add a HOS menu entry
This commit is contained in:
parent
9befd553eb
commit
a9a2f6dcaf
10
Rsconscript
10
Rsconscript
@ -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)
|
||||||
insmod part_gpt
|
menuentry "HOS" {
|
||||||
insmod multiboot
|
insmod part_gpt
|
||||||
set root=(hd0,gpt2)
|
insmod multiboot
|
||||||
multiboot /hos.elf
|
set root=(hd0,gpt2)
|
||||||
|
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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user