diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/dist-upgrade | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/hydractl/dist-upgrade b/share/hydractl/dist-upgrade index c59a1ae..b5720e2 100755 --- a/share/hydractl/dist-upgrade +++ b/share/hydractl/dist-upgrade @@ -105,10 +105,12 @@ function hydra_system_upgrade_prepare { echo "Updating apt configuration..." sed -i -e "s/$release/$nextrelease/g" /etc/apt/sources.list + # Update APT Preferences with the next debian release if [ -e "/etc/apt/preferences" ]; then sed -i -e "s/$release/$nextrelease/g" /etc/apt/preferences fi + # Disable backports during the upgrade sed -i -e 's|^deb http://backports.debian.org/debian-backports|#deb http://backports.debian.org/debian-backports|' /etc/apt/sources.list # These will be generated by puppet and can be safely removed @@ -121,6 +123,11 @@ function hydra_system_upgrade_prepare { apt-get remove colord -y fi + # Handles component migration + if [ "$nextrelease" == "bookworm" ]; then + sed -i -e 's|main contrib non-free$|main contrib non-free non-free-firmware|' /etc/apt/sources.list + fi + # Set next state hydra_system_upgrade_stage download } |