fix: pin at 990, and replace TurnKey's 19.0 sources, pin and keys #4
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/keel-transition!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pin-990-debian-sources"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This is the migration for existing machines that the review of Keel-Linux/common#30 asked for (item 4).
o=turnkeylinuxpin at 999 would beat 990, so--applynow replaces what TurnKey's bootstrap left:debian.sources(deb.debian.org,<codename> <codename>-updates) andsecurity.sources(security.debian.org<codename>-security). Both are marked as written by this tool and keep the suites and components the appliance's own Debian stanzas had.sources.sources,security.sources.sources,turnkey-testing.sourcesand a TurnKey-only/etc/apt/preferencesto<name>.disabled-by-keel.turnkey-keyswithdpkg -P, after saving the files the package owns to/var/lib/keel/transition/turnkey-keys.tar. keel-archive-keyring is already required:--applyexits 6 without it.debian.sourcesorsecurity.sourcesthis tool did not write, other pins in/etc/apt/preferences, or a TurnKey stanza in a file the tool does not know.--rollback. Renames every file back byte for byte, removes what the tool wrote, puts the key files back, and says to reinstallturnkey-keys.--versionnow says 0.2.0; it still said 0.1.0.lib/pin.sh(bin/pin-file) still defaults to 1001 and should follow. The build-time pool pin at 1001 there is intended, because there a downgrade is the point.Test plan
tests/turnkey19.bats, 12 tests, RED first. They cover apply, the hosts apt then reads, the purge through dpkg, byte-for-byte rollback of /etc/apt and the keyrings, idempotence, the three refusals, the fallback with no Debian stanza, and a real-apt check. In that check, apt (local archives, the pin --apply writes) upgrades TurnKey's inithooks 2.3.6 to 2.3.6+keel5 and keeps an installed confconsole +keel11 and a Keel rebuild. Nothing is DOWNGRADED.