diff --git a/modules/ROOT/pages/os-extensions.adoc b/modules/ROOT/pages/os-extensions.adoc index a1250a53..2843a323 100644 --- a/modules/ROOT/pages/os-extensions.adoc +++ b/modules/ROOT/pages/os-extensions.adoc @@ -7,7 +7,7 @@ However, in some cases it is necessary to add software to the base OS itself. Fo To do this, you can use https://coreos.github.io/rpm-ostree/[`rpm-ostree install`]. Consider these packages as "extensions": they extend the functionality of the base OS rather than e.g. providing runtimes for user applications. That said, there are no restrictions on which packages one can actually install. By default, packages are downloaded from the https://docs.fedoraproject.org/en-US/quick-docs/repositories/[Fedora repositories]. To start the layering of a package, you need to write a systemd unit that executes the `rpm-ostree` command to install the wanted package(s). -By default, with `rpm-ostree install`, changes are queued for the next boot. The `-A/--apply-live` option can be used to apply changes live *and* have them persist. +Changes are applied to a new deployment and a reboot is necessary for those to take effect. == Example: Layering vim and setting it as the default editor @@ -43,8 +43,9 @@ systemd: # if the package is already installed. This is useful if the package is # added to the root image in a future Fedora CoreOS release as it will # prevent the service from failing. - ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive vim + ExecStart=/usr/bin/rpm-ostree install -y --allow-inactive vim ExecStart=/bin/touch /var/lib/%N.stamp + ExecStart=/bin/systemctl --no-block reboot [Install] WantedBy=multi-user.target diff --git a/modules/ROOT/pages/sysconfig-enabling-wifi.adoc b/modules/ROOT/pages/sysconfig-enabling-wifi.adoc index 76463e18..404015ef 100644 --- a/modules/ROOT/pages/sysconfig-enabling-wifi.adoc +++ b/modules/ROOT/pages/sysconfig-enabling-wifi.adoc @@ -56,8 +56,9 @@ systemd: [Service] Type=oneshot RemainAfterExit=yes - ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive NetworkManager-wifi iwlwifi-dvm-firmware + ExecStart=/usr/bin/rpm-ostree install -y --allow-inactive NetworkManager-wifi iwlwifi-dvm-firmware ExecStart=/bin/touch /var/lib/%N.stamp + ExecStart=/bin/systemctl --no-block reboot [Install] WantedBy=multi-user.target storage: