syslinux


Description:

[ Version ( since = "1.21.27" ) ]
public bool syslinux (string device, Syslinux? optargs) throws Error

install the SYSLINUX bootloader

Install the SYSLINUX bootloader on device.

The device parameter must be either a whole disk formatted as a FAT filesystem, or a partition formatted as a FAT filesystem. In the latter case, the partition should be marked as "active" ( part_set_bootable) and a Master Boot Record must be installed (eg. using pwrite_device) on the first sector of the whole disk. The SYSLINUX package comes with some suitable Master Boot Records. See the syslinux(1) man page for further information.

The optional arguments are:

directory Install SYSLINUX in the named subdirectory, instead of in the root directory of the FAT filesystem.

Additional configuration can be supplied to SYSLINUX by placing a file called syslinux.cfg on the FAT filesystem, either in the root directory, or under directory if that optional argument is being used. For further information about the contents of this file, see syslinux(1).

See also extlinux.

This function depends on the feature "syslinux". See also feature_available.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsSyslinux containing optional arguments

Returns:

true on success, false on error