clearlinux / clr-boot-manager

Kernel & Boot Loader Management
https://clearlinux.org/
110 stars 31 forks source link

Support signaling rebootmgr #135

Open ahkok opened 5 years ago

ahkok commented 5 years ago

I'd like to figure out a way to make the code support rebootmgr and signal it in case it's available. Essentially, somewhere in the code path after a succesfull installation, we want to essentially do something like this, but only after a kernel was actually installed/changed:

if [ -x /usr/bin/rebootmgrctl ]; then
    rebootmgrctl is-active|grep -q active && rebootmgrctl reboot
fi
bryteise commented 5 years ago

So if we add this into clr-boot-manager it probably needs a new --reboot flag swupd could call it with. I'm actually curious if it wouldn't be better to add to swupd instead though since swupd knows if boot stuff is being updated.

ahkok commented 5 years ago

if swupd knows that clr-boot-mgr succeeded then I'm ok with it.

bryteise commented 5 years ago

I think it ignores clr-boot-manager's return code today but it doesn't have to.

ahkok commented 5 years ago

fair enough, shall I transfer the issue?

bryteise commented 5 years ago

Might as well ask what @otaviobp thinks about this discussion first.