# bootupctl status
To update the boot loader on FCOS nodes using bootupd, you must either run the bootupctl update command on FCOS machines manually or provide a machine config with a systemd unit.
Unlike grubby or other boot loader tools, bootupd does not manage kernel space configuration such as passing kernel arguments.
To configure kernel arguments, see Add kernel arguments to nodes.
For example, you can use bootupd to update the boot loader to protect against the BootHole vulnerability.
|
On clusters that use the On the |
You can manually inspect the status of the system and update the boot loader by using the bootupctl command-line tool.
Inspect the system status by running the following command:
# bootupctl status
x86_64Component EFI
Installed: grub2-efi-x64-1:2.04-31.el8_4.1.x86_64,shim-x64-15-8.el8_1.x86_64
Update: At latest version
OKD clusters initially installed on version 4.4 and older require an explicit adoption phase.
If the system status is Adoptable, perform the adoption by running the following command:
# bootupctl adopt-and-update
Updated: grub2-efi-x64-1:2.04-31.el8_4.1.x86_64,shim-x64-15-8.el8_1.x86_64
If an update is available, apply the update so that the changes take effect on the next reboot by running the following command:
# bootupctl update
Updated: grub2-efi-x64-1:2.04-31.el8_4.1.x86_64,shim-x64-15-8.el8_1.x86_64
You can automatically update the boot loader with bootupd by creating a systemd service unit that will update the boot loader as needed on every boot.
This unit will run the bootupctl update command during the boot process and will be installed on the nodes via a machine config.
|
This configuration is not enabled by default because unexpected interruptions of the update operation might lead to unbootable nodes. If you enable this configuration, make sure to avoid interrupting nodes during the boot process while the boot loader update is in progress. The boot loader update operation generally completes quickly thus the risk is low. |
Create a Butane config file, 99-worker-bootupctl-update.bu, including the contents of the bootupctl-update.service systemd unit.
|
The Butane version you specify in the config file should match the OKD version and always ends in |
variant: openshift
version: 5.0
metadata:
name: 99-worker-chrony
labels:
machineconfiguration.openshift.io/role: worker
systemd:
units:
- name: bootloader-update.service
enabled: true
On control plane nodes, substitute master for worker in metadata.name and metadata.labels.machineconfiguration.openshift.io/role.
Generate a MachineConfig object file, 99-worker-bootupctl-update.yaml, containing the configuration to be delivered to the nodes by running the following command:
$ butane 99-worker-bootupctl-update.bu -o 99-worker-bootupctl-update.yaml
Apply the configurations in one of two ways:
If the cluster is not running yet, after you generate manifest files, add the MachineConfig object file to the <installation_directory>/openshift directory, and then continue to create the cluster.
If the cluster is already running, apply the file by running the following command:
$ oc apply -f ./99-worker-bootupctl-update.yaml
Check that the 99-worker-chrony machine config object was created by running the following command:
$ oc describe mc 99-worker-chrony
Name: 99-worker-chrony
Namespace:
Labels: machineconfiguration.openshift.io/role=worker
Annotations: <none>
API Version: machineconfiguration.openshift.io/v1
Kind: MachineConfig
Metadata:
Creation Timestamp: 2026-10-01T19:09:36Z
Generation: 1
Resource Version: 54580
UID: cde98e8e-9b9c-4b9c-bad9-5608fbe8af74
Spec:
Config:
Ignition:
Version: 3.5.0
Systemd:
Units:
Enabled: true
Name: bootloader-update.service
Events: <none>
Check that the bootloader-update.service systemd unit is enabled on the nodes in the machine config pool specified in the machine config object:
Log in to a node:
$ oc debug node/<node_name>
Set /host as the root directory within the debug shell:
sh-5.1# chroot /host
Verify that the unit is enabled by running the following command:
$ sh-5.2# systemctl is-enabled bootloader-update.service
enabled