part_set_bootable
Description:
[ Version ( since = "1.0.78" ) ]
public bool part_set_bootable (string device, int32 partnum, bool bootable) throws Error
public bool part_set_bootable (string device, int32 partnum, bool bootable) throws Error
make a partition bootable
This sets the bootable flag on partition numbered partnum
on device device
. Note that partitions are numbered from 1.
The bootable flag is used by some operating systems (notably Windows) to determine which partition to boot from. It is by no means universally recognized.
Parameters:
this |
A GuestfsSession object |
Returns:
true on success, false on error |