resize: add function set_partition_bootable_and_id

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>