mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
41ebf3bd94
The argument is superfluous because only run/image/uboot evaluated it anyway, and the argument is always boot/image.elf. With this change, the official semantics of run_image become: "replace the boot/image.elf file by platform-specific file(s) at boot/ that can actually be booted". Issue #4730
23 lines
846 B
Plaintext
23 lines
846 B
Plaintext
source [genode_dir]/tool/run/iso.inc
|
|
|
|
|
|
##
|
|
# Create ISO image with the content of the run directory
|
|
#
|
|
proc run_image { } {
|
|
|
|
puts "creating ISO image..."
|
|
exec rm -f "[run_dir].iso"
|
|
|
|
set grub2_path [get_grub2_dir]
|
|
|
|
#
|
|
# 'xorriso' writes diagnostics to stderr, which are interpreted as
|
|
# execution failure by expect unless '-ignorestderr' is set on 'exec'.
|
|
#
|
|
if {[catch {exec -ignorestderr [installed_command xorriso] -out_charset utf-8 -report_about HINT -as mkisofs -f -l -R -hide-rr-moved -graft-points --modification-date=2017101816570300 -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table --embedded-boot $grub2_path/boot/grub2/embedded.img --protective-msdos-label -o [run_dir].iso -r [run_dir] --sort-weight 0 / --sort-weight 1 /boot} ]} {
|
|
puts stderr "Error: ISO image creation failed"
|
|
exit -5
|
|
}
|
|
}
|