Name the deb822 TurnKey sources a 19.0 appliance really has #1
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!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "deb822-turnkey-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?
Problem
The test bench, a container built from the stock upstream
turnkey-core-19.0-trixie-amd64.iso, has no/etc/apt/sources.list.d/turnkey.listat all.Diagnosis
BRIEF section 7 names that file because it is what an appliance of the
18.x lineage carries. A 19.0 installation puts its upstream archive in
deb822 files, and puts it in the same file as the Debian stanzas:
security.sources.sourcesis the same shape. Renaming one of thosewould disable Debian along with TurnKey, which is worse than doing
nothing. What the tool must not do is stay silent: before this change,
the survey of a stock 19.0 printed
no upstream list on this machine,which reads as "this appliance has no upstream archive configured" and
is false.
Fix
turnkey_sourcesfinds the deb822 files carrying anarchive.turnkeylinux.orgstanza, and every phase names them, says whythey were left enabled, and says that the origin pin at 1001 is what
makes the Keel archive win over them. That last part is true: the pin is
on the
Originof theRelease, so it applies whatever else is insources.list.d.The rename of
turnkey.liststays exactly as specified, for theappliances that have one. Disabling a single stanza inside a shared
deb822 file is a different change with a different risk, and it needs a
decision note before it is made.
Test plan
tests/coverage.sh)turnkey_sources(found, none, directory gone)shellcheck -S warningcleanServes BRIEF section 7.
Acceptance run on the bench (decisions 0003 point 4 and 0004 point 4)
Container
tkl-core-bench, built on the build host from the stock upstreamturnkey-core-19.0-trixie-amd64.iso(sha256 and the TurnKey trixie imagesignature both verified), macvlan on
eth0, native systemd, no otherruntime. Both
.debfiles built with the apt tooling'sbin/build-package,which detected the source as native.
Survey. Wrote
/etc/keel/instance.yaml(hostname, both interfacesdhcp on each family,
managed_by: hostfrom the LXC marker, threenameservers,
security.updates: force, timezone, lang) and the report:14 inferred, 5 not inferred, 1 of them required (
instance.fqdn:/etc/hostshas no qualified name and
hostname -fansweredcore). Exit 3./etc/aptunchanged.Refusal.
--applyagainsthttps://archive.keellinux.org:diff -ragainst a copy of the whole/etc/apttree taken beforehand:identical.
Force-unsigned against the build host's reprepro staging tree, over
IPv6, then
apt-get updaterun by hand because the tool does not run it:Same shape for
keel,inithooksandconfconsole: the origin pin putsthe project's packages at 1001 over TurnKey's 999.
Rollback.
diff -ridentical again, and the sha256 of the sha256 sums ofevery file under
/etc/aptmatches the pre-apply value(
eed5ec97...4f9bab). A second--rollbackexits 0 and changes nothing.The rename, on an appliance that has a
turnkey.list. A file was put atthat path to stand in for an 18.x lineage appliance;
--applyrenamed it toturnkey.list.disabled-by-keel,--rollbackrenamed it back, and its sha256was unchanged (
ea98dbaf...5eebac).No package was installed, upgraded or removed by the tool in any phase. The
container is left stopped, not destroyed:
lxc-start -n tkl-core-bench.