libfdisk: (script) print bootable flag only when set
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
787af7ce7c
commit
940f9def45
|
@ -643,7 +643,8 @@ static int write_file_json(struct fdisk_script *dp, FILE *f)
|
|||
ul_jsonwrt_value_s(&json, "attrs", pa->attrs);
|
||||
}
|
||||
|
||||
ul_jsonwrt_value_boolean(&json, "bootable", fdisk_partition_is_bootable(pa));
|
||||
if (fdisk_partition_is_bootable(pa))
|
||||
ul_jsonwrt_value_boolean(&json, "bootable", 1);
|
||||
ul_jsonwrt_object_close(&json);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue