-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Script to upgrade from focal to noble
The script is split into various stages where progress is tracked on-disk. The script is able to resume where it was at any point, and needs to, given multiple reboots in the middle. Given that we want to invoke the check script during the upgrade path, most of the code is moved into a common lib.rs that can be imported by both check.rs and upgrade.rs. The new noble-upgrade.json file shipped in the securedrop-config package is used to control the upgrade process. A systemd timer runs every 3 minutes to trigger the upgrade script, which in most cases will do nothing. We need to run it so frequently since this is how the script will be restarted after it pauses for a reboot. Fixes #7332.
- Loading branch information
Showing
14 changed files
with
1,055 additions
and
312 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deb [arch=amd64] https://apt.freedom.press noble main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## newer versions of the distribution. | ||
deb http://archive.ubuntu.com/ubuntu/ noble main | ||
|
||
## newer versions of the distribution. | ||
deb http://archive.ubuntu.com/ubuntu/ noble universe | ||
|
||
## Major bug fix updates produced after the final release of the | ||
## distribution. | ||
deb http://archive.ubuntu.com/ubuntu/ noble-updates main | ||
|
||
### Security fixes for distribution packages | ||
deb http://security.ubuntu.com/ubuntu noble-security main | ||
deb http://security.ubuntu.com/ubuntu noble-security universe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Types: deb | ||
URIs: http://archive.ubuntu.com/ubuntu/ | ||
Suites: noble noble-updates | ||
Components: main universe restricted multiverse | ||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg | ||
|
||
Types: deb | ||
URIs: http://security.ubuntu.com/ubuntu/ | ||
Suites: noble-security | ||
Components: main universe restricted multiverse | ||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg |
Oops, something went wrong.