Fixes to ubuntu-release-upgrader

This commit is contained in:
Ruben Rodriguez 2020-04-18 04:51:19 -04:00
parent c4ebc86a06
commit 3e7348be87
5 changed files with 99 additions and 9 deletions

View file

@ -48,13 +48,13 @@ Types=386,ec2,generic,generic-lpae,lowlatency,powerpc-e500mc,powerpc-smp,
[trisquel] [trisquel]
KeyDependencies=trisquel-desktop-common-data, unity-greeter, lightdm KeyDependencies=trisquel-desktop-common-data, unity-greeter, lightdm
# those pkgs will be marked remove right after the distUpgrade in the cache # those pkgs will be marked remove right after the distUpgrade in the cache
PostUpgradeRemove=casper, xscreensaver, gnome-cups-manager, powermanagement-interface, deskbar-applet, nautilus-cd-burner, compiz-core, gdm, gnome-ppp, gwibber, remmina-common PostUpgradeRemove=casper, xscreensaver, gnome-cups-manager, powermanagement-interface, deskbar-applet, nautilus-cd-burner, compiz-core, gdm, gnome-ppp, gwibber, remmina-common, resolvconf
ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf
[trisquel-mini] [trisquel-mini]
KeyDependencies=trisquel-mini-data unity-greeter KeyDependencies=trisquel-mini-data unity-greeter
#Remove previous gnome component from ltrisquel to avoid pulling gnome depends on upgrade (LP: #945215) #Remove previous gnome component from ltrisquel to avoid pulling gnome depends on upgrade (LP: #945215)
PostUpgradeRemove=casper, gnome-bluetooth, gnome-power-manager PostUpgradeRemove=casper, gnome-bluetooth, gnome-power-manager, resolvconf
ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf
[Files] [Files]

View file

@ -0,0 +1,87 @@
[View]
# the views will be tried in this order, if one fails to import, the next
# is tried
View=DistUpgradeViewGtk3,DistUpgradeViewKDE,DistUpgradeViewText
#View=DistUpgradeViewNonInteractive
#Depends= apt (>= 1.0.10.2ubuntu2)
# the views below support upgrades over ssh connection
SupportSSH=DistUpgradeViewText,DistUpgradeViewNonInteractive
# Distro contains global information about the upgrade
[Distro]
# the meta-pkgs we support
MetaPkgs=trisquel-recommended, trisquel-mini-recommended, triskel-recommended, trisquel-sugar-recommended
BaseMetaPkgs=trisquel-minimal, trisquel-base-recommended
Demotions=demoted.cfg
#RemoveEssentialOk=sysvinit, sysvutils, belocs-locales-bin
RemovalBlacklistFile=removal_blacklist.cfg
# if those packages were installed, make sure to keep them installed
KeepInstalledPkgs=xserver-xorg-video-all
KeepInstalledSection=translations
RemoveObsoletes=yes
PurgeObsoletes=yes
#ForcedObsoletes=ksplash-engine-moodin, powernowd, laptop-mode-tools
# hints for for stuff that should be done right after the cache calculated
# the dist-upgrade (not to be confused with the PostUpgrade hooks in the
# quirks handling)
#PostUpgradePurge=linux-restricted-modules-common
#PostUpgradeRemove=xsettings-kde
#PostUpgradeUpgrade=brasero,edubuntu-desktop
#PostUpgradeInstall=apt
PostInstallScripts=./trisquel-postinstall.sh
EnableApport=yes
# this supported blacklisting certain versions to ensure we do not upgrade
# - blcr-dkms fails to build on kernel 2.6.35
#BadVersions=blcr-dkms_0.8.2-13
# ubiquity slideshow
#SlideshowUrl=http://people.canonical.com/~mvo/ubiquity-slideshow-upgrade/slides/
[KernelRemoval]
Version=4.4.0
BaseNames=linux-image,linux-headers,linux-image-debug,linux-backport-modules,
linux-header-lbm,linux-signed-image,linux-tools,linux-cloud-tools,
linux-image-extra
Types=386,ec2,generic,generic-lpae,lowlatency,powerpc-e500mc,powerpc-smp,
powerpc64-emb,powerpc64-smp,rt,server,virtual
# information about the individual meta-pkgs
[trisquel]
KeyDependencies=trisquel-desktop-common-data, unity-greeter, lightdm
# those pkgs will be marked remove right after the distUpgrade in the cache
PostUpgradeRemove=casper, xscreensaver, gnome-cups-manager, powermanagement-interface, deskbar-applet, nautilus-cd-burner, compiz-core, gdm, gnome-ppp, gwibber, remmina-common, resolvconf
ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf
[trisquel-mini]
KeyDependencies=trisquel-mini-data unity-greeter
#Remove previous gnome component from ltrisquel to avoid pulling gnome depends on upgrade (LP: #945215)
PostUpgradeRemove=casper, gnome-bluetooth, gnome-power-manager, resolvconf
ForcedObsoletes=desktop-effects, cups-pdf, policykit-gnome, gnome-mount, notification-daemon, trisquel-session, libcogl15, libcogl-pango15, gnome-app-install, resolvconf
[Files]
BackupExt=distUpgrade
LogDir=/var/log/dist-upgrade/
[Sources]
From=flidas
To=etiona
ValidOrigin=Trisquel
ValidMirrors = mirrors.cfg
Components=main
Pockets=security,updates,proposed,backports
;AllowThirdParty=False
;[PreRequists]
;Packages=release-upgrader-apt,release-upgrader-dpkg
;SourcesList=prerequists-sources.list
;SourcesList-ia64=prerequists-sources.ports.list
;SourcesList-hppa=prerequists-sources.ports.list
[Network]
MaxRetries=3
[NonInteractive]
ForceOverwrite=yes
RealReboot=no
DebugBrokenScripts=no
DpkgProgressLog=no
;TerminalTimeout=2400

View file

@ -54,7 +54,7 @@ LogDir=/var/log/dist-upgrade/
[Sources] [Sources]
From=robur From=robur
To=toutatis To=taranis
ValidOrigin=Trisquel ValidOrigin=Trisquel
ValidMirrors = mirrors.cfg ValidMirrors = mirrors.cfg
Components=main Components=main

View file

@ -55,8 +55,8 @@ BackupExt=distUpgrade
LogDir=/var/log/dist-upgrade/ LogDir=/var/log/dist-upgrade/
[Sources] [Sources]
From=belenos From=toutatis
To=fridas To=belenos
ValidOrigin=Trisquel ValidOrigin=Trisquel
ValidMirrors = mirrors.cfg ValidMirrors = mirrors.cfg
Components=main Components=main

View file

@ -24,7 +24,7 @@
# Also, don't forget to update the meta-release files at archive and packages.t.i # Also, don't forget to update the meta-release files at archive and packages.t.i
# The "obsoletes" list from ubuntu has been removed # The "obsoletes" list from ubuntu has been removed
VERSION=6 VERSION=7
. ./config . ./config
@ -36,6 +36,9 @@ sed '/_add_extras_repository/,/adding extras.ubuntu.com/d' -i DistUpgrade/DistUp
sed 's/01ubuntu/01backports/' -i DistUpgrade/DistUpgradeController.py sed 's/01ubuntu/01backports/' -i DistUpgrade/DistUpgradeController.py
rm tests/test-data/xorg.conf.fglrx rm tests/test-data/xorg.conf.fglrx
# Fix mirror checker
sed '/security.ubuntu.com" in entry.uri or/d' -i DistUpgrade/DistUpgradeController.py
#https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740 #https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740
cat << EOF >> DistUpgrade/DistUpgradeQuirks.py cat << EOF >> DistUpgrade/DistUpgradeQuirks.py
@ -228,9 +231,6 @@ https://ftp.yzu.edu.tw/Linux/trisquel.packages/
https://mirrors.ocf.berkeley.edu/trisquel/ https://mirrors.ocf.berkeley.edu/trisquel/
EOF EOF
rm data/DistUpgrade.cfg*
cp $DATA/DistUpgrade.cfg* data/
cat << EOF1 > DistUpgrade/trisquel-postinstall.sh cat << EOF1 > DistUpgrade/trisquel-postinstall.sh
#!/bin/sh #!/bin/sh
@ -279,6 +279,9 @@ rpl trusty belenos . -R
rpl xenial flidas . -R rpl xenial flidas . -R
rpl bionic etiona . -R rpl bionic etiona . -R
rm data/DistUpgrade.cfg*
cp $DATA/DistUpgrade.cfg* data/
rm ./data/demoted.cfg ./DistUpgrade/demoted.cfg.trusty utils/demoted.cfg.trusty data/demoted.cfg.trusty rm ./data/demoted.cfg ./DistUpgrade/demoted.cfg.trusty utils/demoted.cfg.trusty data/demoted.cfg.trusty
echo "notification-daemon" > data/demoted.cfg echo "notification-daemon" > data/demoted.cfg
echo "notification-daemon" $DATA/demoted utils/demoted.cfg echo "notification-daemon" $DATA/demoted utils/demoted.cfg