Rudd-O / zfs-fedora-installer

Fedora on ZFS root installer
35 stars 6 forks source link

Support --upgrade flag #12

Open Rudd-O opened 8 years ago

Rudd-O commented 8 years ago

./deploy-zfs --upgrade should work as a way to ignore whether ZFS, SPL or grub-zfs-fixer are installed (skip the checks, pretending they are not), and redeploy anyway.

The redeploy is tricky because the version numbers most likely do not change between upgrades, so a simple rpm -Uvh of the packages would not work -- existing packages would remain installed. I use in my internal builds a command line switch that allows me to specify a "build number" -- this could be effective at causing packages to be upgraded.

The redeploy is further complicated by the fact that DKMS would need to rebuild to match the newly-deployed ZFS sources, but DKMS (because of weak-updates in Fedora?) is very lazy about rebuilding sources that have been updated but haven't had their version numbers change.

Perhaps deploy-zfs should create a local Yum/dnf repo, deploy its packages there (and, on redeploy, pushing updates it creates to that directory), then use dnf to install those packages Right now it works by doing a manual rpm -Uvh -- that is silly, we have package managers for that!