Skip to content
Discussion options

You must be logged in to vote

For the bootupd part, using version 0.2.28, you can have a systemd unit

[Unit]
Description=bootloader adopt
ConditionKernelCommandLine=ostree
ConditionPathExists=!/boot/bootupd-state.json
RequiresMountsFor=/sysroot /boot
Before=bootloader-update.service

[Service]
Type=oneshot
ExecStart=/usr/bin/bootupctl adopt-and-update --with-static-config
RemainAfterExit=yes
# Keep this stuff in sync with SYSTEMD_ARGS_BOOTUPD in general
PrivateNetwork=yes
ProtectHome=yes
KillMode=mixed
MountFlags=slave

[Install]
WantedBy=multi-user.target

It'll update grub, the grub config, and set ostree to not generate grub config anymore (just the BLS files)

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@champtar
Comment options

@Mstrodl
Comment options

@champtar
Comment options

@champtar
Comment options

@Mstrodl
Comment options

Answer selected by Mstrodl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants