Charalampos Kominos 7e1bb74831 feat: Add new autoupdates element
This patch proposes a new element which creates a mechanism for the
image to have automatic updates enabled from the first boot. A custom
config file, is expected during build time, which is injected into
the image.

Change-Id: Ib4c7513db4e00d592447fda1b1d0ed2bc649e1cf
Signed-off-by: Charalampos Kominos <hkominos@gmail.com>
2024-09-02 21:54:54 +03:00
..
2024-09-02 21:54:54 +03:00
2024-09-02 21:54:54 +03:00
2024-09-02 21:54:54 +03:00
2024-09-02 21:54:54 +03:00

autoupdates

This element will configure both debian family and redhat family images to have an automatic updates mechanism built into the image, for example to update automatically from the security repos. For Debian based images it is based on unuattended-upgrades and for Redhat on dnf-automatic.

Environment Variables

DIB_DEB_UPDATES_CONF
Required

Yes for the Debian Family

Default

None

Description

The location of a custom 50unattended-upgrades file on the builder which will be injected into the image.

Example

DIB_DEB_UPDATES_CONF=/home/50unattended-upgrades

DIB_YUM_UPDATES_CONF
Required

Yes for the Redhat Family

Default

None

Description

The location of a custom automatic.conf file on the builder which will be injected into the image.

Example

DIB_YUM_UPDATES_CONF=/home/automatic.conf