mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
run: mark ext2 partition as bootable
When building for the 'disk' run target, the ext2 partition needs to be marked as bootable to be booted from on some hardware. Fixes #1270
This commit is contained in:
parent
2350eac251
commit
1e424a6fd2
2
tool/run
2
tool/run
@ -485,7 +485,7 @@ proc create_disk_image_from_run_dir { } {
|
||||
# merge final image from GRUB2 head and partition
|
||||
exec dd if=$grub_img of=$disk_img status=noxfer bs=1M count=1 2>/dev/null
|
||||
exec dd if=$part1_img of=$disk_img status=noxfer bs=1M seek=1 2>/dev/null
|
||||
exec parted -s $disk_img -- rm 1 mkpart primary 2048s -1s
|
||||
exec parted -s $disk_img -- rm 1 mkpart primary 2048s -1s set 1 boot on
|
||||
|
||||
exec rm -f $part1_img
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user