bdisk/docs/manual/dev/functions/BUILD.adoc

1.5 KiB

build.py

This is responsible for building the "full" ISO, building UEFI support, etc.

genImg(conf)

This function builds the squashed filesystem images and, if requested, signs them.

conf

See [conf].

genUEFI(build, bdisk)

This function builds UEFI support for the ISO files. Returns the path of an embedded EFI bootable binary/ESP image.

build

The build section of the configuration.

bdisk

The bdisk section of the configuration.

genISO(conf)

Builds the full ISO image(s). Returns a dictionary of information about the built ISO file (see [iso]).

conf

See [conf].

displayStats(iso)

Parses the output of e.g. genISO() and displays in a summary useful to the end-user.

iso

A dictionary of information about the ISO file. This is typically:

{'iso':
     {'name':<'Main' for the full ISO, 'Mini' for the mini ISO, etc.>},
     {<name>:
          'sha':<SHA256 sum of ISO file>,
          'file':<full/absolute path to ISO file>,
          'size':<size, in "humanized" format (e.g. #GB, #MB, etc.)>,
          'type':<Full or Mini>,
          'fmt':<human readable ISO type. e.g. Hybrid for an image that can be burned directly to a disk via dd or burned to optical media>
     }
}

cleanUp()

Currently a no-op; this function is reserved for future usage to cleanup the build process automatically.