2015-01-08 21:08:48 +00:00
|
|
|
source [genode_dir]/tool/run/iso.inc
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
# Create ISO image with the content of the run directory
|
|
|
|
#
|
2023-01-18 15:56:28 +00:00
|
|
|
proc run_image { } {
|
2015-01-08 21:08:48 +00:00
|
|
|
|
|
|
|
puts "creating ISO image..."
|
|
|
|
exec rm -f "[run_dir].iso"
|
|
|
|
|
2017-09-20 20:56:00 +00:00
|
|
|
set grub2_path [get_grub2_dir]
|
|
|
|
|
2015-01-08 21:08:48 +00:00
|
|
|
#
|
2017-09-20 20:56:00 +00:00
|
|
|
# 'xorriso' writes diagnostics to stderr, which are interpreted as
|
2015-01-08 21:08:48 +00:00
|
|
|
# execution failure by expect unless '-ignorestderr' is set on 'exec'.
|
|
|
|
#
|
2018-06-19 17:55:04 +00:00
|
|
|
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} ]} {
|
2015-01-08 21:08:48 +00:00
|
|
|
puts stderr "Error: ISO image creation failed"
|
|
|
|
exit -5
|
|
|
|
}
|
|
|
|
}
|