create_grub2: ext2 default parameters for image

The mkfs.ext2 heuristics select the "small" ext2 usage type, which does
not fit well with GiB-sized pen drives. For example, the block size is
just 1024 bytes compared to 4096 for "default". Therefore, we enforce
the default usage type as this fits our use case of dumping the image to
USB sticks better.
This commit is contained in:
Christian Helmuth
2015-02-28 12:42:22 +01:00
parent 86c0656de0
commit da21a3c338
3 changed files with 6 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ proc run_image { {unused ""} } {
set grub_img "[genode_dir]/tool/grub2-head.img"
set disk_img "[run_dir].img"
set part1_img "[run_dir]-part1.img"
set run_size [expr [regsub {\s.*} [exec du -sm [run_dir]] {}] + 4]
set run_size [expr [regsub {\s.*} [exec du -sm [run_dir]] {}] + 8]
if {[image_disk_size] > 0} {
set disk_size [image_disk_size]
} else {