Skip to content

Add IPv6 support to the initfence#77

Open
JedMeister wants to merge 9 commits intoturnkeylinux:masterfrom
JedMeister:ipv6-fence
Open

Add IPv6 support to the initfence#77
JedMeister wants to merge 9 commits intoturnkeylinux:masterfrom
JedMeister:ipv6-fence

Conversation

@JedMeister
Copy link
Copy Markdown
Member

@JedMeister JedMeister commented May 8, 2026

This PR is init-fence related - mostly directly:

  • Update simplehttpd.py so it's "dual stack" (i.e. IPv4 & IPv6).
  • Update turnkey-init-fence so that it sets/unsets IPv6 firewall rules too.
  • Add support for systemctl reload turnkey-init-fence - reloads the webserver without touching the firewall rules - used by 29tagid after updating index.html.
  • Update run so that it will start running inithooks straight away but then wait once it gets the first 30... inithook (all early hooks are non-interactive). This allows the init-fence page to be updated early, but still ensure that boot messages don't spam over the interactive hooks &/or confconsole.
  • Refactored 30turnkey-init-fence & '97turnkey-init-fence-disable` to account for when headless system is launched without preseeding. FYI when that happens the inithooks will run twice but we don't want the fence to come down until they interactively run the first boot hooks (the second time it runs).
  • Update the readme in light of the changed fence functionality.

Also needs turnkeylinux/buildtasks#96

This hasn't yet been extensively tested, but the package has been built and pushed to the trixie-testing repo.

@JedMeister JedMeister requested a review from OnGle May 8, 2026 06:59
Copy link
Copy Markdown
Member

@OnGle OnGle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Copy Markdown
Member

@OnGle OnGle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@OnGle
Copy link
Copy Markdown
Member

OnGle commented May 8, 2026

Whoops! That explains why those 2 PRs looked so similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants