fix: an image is exported named after its appliance, with no 127.0.1.1 line #35
No reviewers
Labels
No labels
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/common!35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/export-drops-build-hostname"
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?
A Keel Web image carried
127.0.1.1 webin/etc/hostsfrom the build-time hostname (conf/turnkey.d/hostname), and the live container created by pct had both that line and pct's127.0.1.1 keel-web1.pop.coop keel-web1(2026-10-03).Change:
mk/turnkey/seal-hostname ROOTFS, a sibling ofseal-root, run inroot.patched/postofmk/turnkey.mkandmk/turnkey-desktop.mkright afterbin/keel-version-filesand beforeseal-root:/etc/keel_version(fallback/etc/turnkey_version; prefix and grammar fromlib/version-files.sh, songinx-php-fastcgistays whole) to/etc/hostname, mode 0644;127.0.1.1line of/etc/hosts(any spacing, any names;127.0.1.10is not one), keeping every other line and the file's mode; a tree without/etc/hostsis fine;The first boot is then the only writer of the machine's name: inithooks'
09hostnamerenames the files throughlib/hostname.sh, and31fqdnwrites the hosts entry throughfqdn.py --hosts.Tests:
tests/seal-hostname.bats(17 cases, 100 percent of the script under kcov 43, added totests/coverage.sh); two new cases intests/mk-identity.batsrun the recipe of both makefiles against the fab stubs and read/etc/hostnameand/etc/hostsback.seal-root.batsstill assertsseal-rootis the recipe's last step. Changelog bullet in the unreleasedturnkey-core-19.0 (1)entry ofchanges/turnkey.changelog.Decided, for the maintainer: the step runs inside the
if [ -f ./changelog ]branch, since it needs the identity file written just before it; a build without a changelog still goes on with upstream's warning and keeps the build hostname, as it did before. Desktop builds get the step too, as they get the identity files.