Helper Documentation¶
Root Filesystem Helpers¶
The lwr.vm module provides helpers for calling vmdebootstrap as part of the image creation process.
Directory listing of /live/ filesystem.packages filesystem.packages-remove filesystem.squashfs initrd.img vmlinuz
Note
This module requires that the vmdebootstrap modules be available in the Python path.
Bootloader Helpers¶
The lwr.grub module contains helpers for GRUB 2 including the installation of GRUB files to the cdroot and the generation of the grub.cfg and loopback.cfg files.
-
lwr.grub.
install_grub
(cdroot, bootconfig)[source]¶ Can use cdroot as a relative path inside the actual cdroot. The d-i/ and live/ directories are used directly.
The lwr.isolinux module contains helpers for isolinux including the installation of isolinux files to the cdroot and the generation of the isolinux.cfg files. Directory listing of /isolinux/ advanced.cfg boot.cat hdt.c32 install.cfg isolinux.bin isolinux.cfg ldlinux.c32 libcom32.c32 libutil.c32 live.cfg menu.cfg splash.png stdmenu.cfg vesamenu.c32
CD Filesystem Helpers¶
This module provides helpers for generating the metadata stored in .disk/ on the cdroot.
ISO Creation Helpers¶
The lwr.xorriso module provides helpers for calling xorriso as part of the image creation process.
Note
This module requires that the vmdebootstrap modules be available in the Python path.
-
class
lwr.xorriso.
Xorriso
(image_output, volume_id, isolinux=True, grub=True)[source]¶ This class acts as a wrapper for
xorriso
and allows for the command line arguments passed to be built based on the settings given to the main application.-
build_image
()[source]¶ This will call
xorriso
with the arguments built.Note
Xorriso.build_args
must have been called before callingXorriso.build_image
.Warning
The
xorriso
binary must be present in the current PATH.
-