mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
run/image/disk: omit * from GENODE partition label
This way, the boot partition is not considered as default partition by Sculpt unless the user explicitly marks it as such. Issue #2778
This commit is contained in:
parent
66d44289e1
commit
096c1e1f7f
@ -37,7 +37,7 @@ proc run_image { {unused ""} } {
|
||||
|
||||
# setup partition with content
|
||||
exec dd if=/dev/zero of=[run_dir].partition bs=1k count=$disk_size_kb 2>/dev/null
|
||||
exec mkfs.ext2 -L GENODE* -q -T default [run_dir].partition
|
||||
exec mkfs.ext2 -L GENODE -q -T default [run_dir].partition
|
||||
|
||||
# copy content to disk image
|
||||
foreach file [exec find [run_dir]] {
|
||||
@ -74,7 +74,7 @@ proc run_image { {unused ""} } {
|
||||
exec rm [run_dir].partition
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user