Skip to content

Commit

Permalink
support systems without bootc
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Dec 2, 2024
1 parent c85d6e8 commit 364aa86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drv/bootc.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ type SystemUpdateDriver struct {
func GetSystemUpdateDriver() (SystemUpdateDriver, error) {
useBootc, err := BootcCompat()
if err != nil {
return SystemUpdateDriver{}, err
// bootc isn't on the current system if there's an error
return SystemUpdateDriver{
IsRpmOstreeImageOutdated,
RpmOstreeUpdate,
CheckForRpmOstreeImageUpdate,
"rpm-ostree",
}, nil
}
if useBootc {
return SystemUpdateDriver{
Expand Down

0 comments on commit 364aa86

Please sign in to comment.