From 364aa86a271699372aa7316162367b47fa18bf78 Mon Sep 17 00:00:00 2001 From: gerblesh <101901964+gerblesh@users.noreply.github.com> Date: Sun, 1 Dec 2024 18:53:01 -0800 Subject: [PATCH] support systems without bootc --- drv/bootc.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drv/bootc.go b/drv/bootc.go index 6e0bd7f..8c5a820 100644 --- a/drv/bootc.go +++ b/drv/bootc.go @@ -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{