mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
parent
0efa67893e
commit
b1389416d2
@ -15,6 +15,7 @@ proc image_disk_size { } { return [get_cmd_arg --image-disk-size 0] }
|
|||||||
#
|
#
|
||||||
proc run_image { {unused ""} } {
|
proc run_image { {unused ""} } {
|
||||||
|
|
||||||
|
requires_installation_of gdisk
|
||||||
requires_installation_of parted
|
requires_installation_of parted
|
||||||
requires_installation_of e2cp
|
requires_installation_of e2cp
|
||||||
|
|
||||||
@ -74,6 +75,10 @@ proc run_image { {unused ""} } {
|
|||||||
|
|
||||||
# create partition table entry pointing to the content
|
# create partition table entry pointing to the content
|
||||||
catch { exec parted -a none [run_dir].img -- mkpart Fix GENODE* ext2 [expr $first_sector]s ${last_sector}s }
|
catch { exec parted -a none [run_dir].img -- mkpart Fix GENODE* ext2 [expr $first_sector]s ${last_sector}s }
|
||||||
|
|
||||||
|
# create hybrid MBR
|
||||||
|
exec echo -e "r\no\nh\n1\nn\n\ny\nn\no\nw\ny\n" | gdisk [run_dir].img
|
||||||
|
|
||||||
set size_image [expr [regsub {\s.*} [exec du -sk [run_dir].img] {}]]
|
set size_image [expr [regsub {\s.*} [exec du -sk [run_dir].img] {}]]
|
||||||
puts "Created image file [run_dir].img (${size_image}kiB)"
|
puts "Created image file [run_dir].img (${size_image}kiB)"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user