Skip to content

plug:rpm ostree install overlays

Keith edited this page Jan 15, 2020 · 5 revisions

Install rpms using ostree overlays

This plug installs the overlays listed in the environment variable OSTREE_OVERLAY.

Environment variables set in file: plug:rpm-ostree-overlay.env

OSTREE_OVERLAY=htop nano
#OSTREE_OVERLAY=htop
OSTREE_OVERLAY_INSTALL_ACTION=rpm-ostree ex livefs --i-like-danger
#OSTREE_OVERLAY_INSTALL_ACTION=systemctl reboot

Notes:

Adding overlays to rpm-ostree is risky due to the push model used for providing server updates. Upstream testing will not have been performed on your specific combination of packages.

The Plug:

systemd.units[+]:
    name: rpm-ostree-install-overlays.service
    enabled: true
    contents: |
        [Unit]
        Description=Download & Ready Overlayed Packages
        ConditionFirstBoot=yes
        Before=boot-complete.target
        [Service]
        Type=oneshot
        ExecStart=rpm-ostree install ${OSTREE_OVERLAY} ${COCKPIT_BASE} ${COCKPIT_EXTENSIONS}
        # reboot OR rpm-ostree ex livefs --i-like-danger
        ExecStart=${OSTREE_OVERLAY_INSTALL_ACTION}
        [Install]
        RequiredBy=boot-complete.target