-
- Downloads
Fix build iso routine to be able to deal with optional config keys
Earlier this year, we had to adapt the routine to be able to define the net devices and the interfaces diffently than the default names (net0, ...). It worked at the time because we declared those in the $(hostname).yaml configuration file. But now, trying to use the default values (without specifying those new entries), the routine does not work. The cli j2 is not happy about non declared template values (IPXE_NET, ...) [1] This fixes it by using temporary templates which gets adapted through sed to fill-in the holes. Once done, the temporary templates are cleaned up. [1] ``` jinja2.exceptions.UndefinedError: 'IPXE_NET' is undefined ``` Refs. sysadm-environment#5519
Please register or sign in to comment