6. entry
Entry point module for cmkinitramfs
- class cmkinitramfs.entry.Config(root, mounts, keymap, files, execs, libs, busybox, init_path, cmkcpiodir_opts, cmkcpiolist_opts, modules, has_modules_manual, scripts)[source]
Bases:
object
Configuration informations
- Parameters
root (Data) – Rootfs data needed to boot
keymap (Optional[Tuple[str, str, str]]) – Keymap information tuple
(source, build, dest)
:source
: keymap to convert,build
: converted keymap,dest
: keymap path within the initramfsfiles (Iterable[Tuple[str, Optional[str]]]) – User configured files, see
cmkinitramfs.init.Data.files
execs (Iterable[Tuple[str, Optional[str]]]) – User configured executables, see
cmkinitramfs.init.Data.files
libs (Iterable[Tuple[str, Optional[str]]]) – User configured libraries, see
cmkinitramfs.init.Data.files
busybox (Iterable[str]) – Needed executables compatibles with busybox implementation
init_path (str) – Path where the init script will be generated
cmkcpiodir_opts (str) – Default options for cmkcpiodir
cmkcpiolist_opts (str) – Default options for cmkcpiolist
modules (Mapping[str, Iterable[str]]) – Kernel modules to be loaded in the initramfs:
{module: (arg, ...)}
. Seecmkinitramfs.init.mkinit()
.scripts (Mapping[Breakpoint, Iterable[str]]) – User scripts to run at given breakpoints. See
scripts
forcmkinitramfs.init.mkinit()
.has_modules_manual (bool) –
- cmkinitramfs.entry.read_config(config_file=None)[source]
Read a configuration file and generate data structures from it
- Parameters
config_file (Optional[str]) – Configuration file to use. Defaults to, in order:
CMKINITCFG
environment variable,./cmkinitramfs.ini
,/etc/cmkinitramfs.ini
.- Returns
Configuration dictionnary, described by
Config
- Raises
ValueError – Config file parsing error
- Return type