mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
7a5eab9541
With "grub2: update to newer grub2 2.06 version" a regression slipped in which makes the ISO not bootable on real hardware. The commit reverts to the previous behaviour, to load the GRUB2 modules after boot later one by one in the ISO format case. Fixes #4647
24 lines
608 B
PHP
24 lines
608 B
PHP
##
|
|
# Install files needed to create a bootable ISO image
|
|
#
|
|
# The ISO boot concept uses GRUB2 and xorriso to boot from ISO and USB stick.
|
|
#
|
|
|
|
source [genode_dir]/tool/run/grub2.inc
|
|
|
|
proc install_iso_bootloader_to_run_dir { } {
|
|
puts "install bootloader"
|
|
|
|
set grub2_path [get_grub2_dir]
|
|
|
|
exec mkdir -p [run_dir]/boot/grub/i386-pc
|
|
exec cp $grub2_path/boot/grub2/eltorito.img [run_dir]/boot/grub/i386-pc/.
|
|
|
|
set filelist [glob -nocomplain $grub2_path/boot/grub2/*.mod]
|
|
foreach file $filelist {
|
|
file copy $file [run_dir]/boot/grub/i386-pc/.
|
|
}
|
|
|
|
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
|
}
|