extlinux


Description:

[ Version ( since = "1.21.27" ) ]
public bool extlinux (string directory) throws Error

install the SYSLINUX bootloader on an ext2/3/4 or btrfs filesystem

Install the SYSLINUX bootloader on the device mounted at directory. Unlike syslinux which requires a FAT filesystem, this can be used on an ext2/3/4 or btrfs filesystem.

The directory parameter can be either a mountpoint, or a directory within the mountpoint.

You also have to mark the partition 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 extlinux(1) man page for further information.

Additional configuration can be supplied to SYSLINUX by placing a file called extlinux.conf on the filesystem under directory. For further information about the contents of this file, see extlinux(1).

See also syslinux.

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

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error