Skip to content

Fix WS2022 compat on hosts past the latest LTSC#34

Open
zylxjtu wants to merge 1 commit intocontainerd:mainfrom
zylxjtu:main
Open

Fix WS2022 compat on hosts past the latest LTSC#34
zylxjtu wants to merge 1 commit intocontainerd:mainfrom
zylxjtu:main

Conversation

@zylxjtu
Copy link
Copy Markdown

@zylxjtu zylxjtu commented Apr 27, 2026

The compat-range floor was computed by finding the latest LTSC strictly less than host.Build. That works for an exact LTSC host but breaks for any host past the latest LTSC: a WS2025-generation build like 26200 picks 26100 as the floor, excluding WS2022 (20348) containers even though the stable ABI policy permits them.

Find the largest LTSC <= host.Build and step one entry back for the floor (or stay put if it is already the first entry). This keeps the floor at the previous LTSC across an entire host generation.

The compat-range floor was computed by finding the latest LTSC
strictly less than host.Build. That works for an exact LTSC host but
breaks for any host past the latest LTSC: a WS2025-generation build
like 26200 picks 26100 as the floor, excluding WS2022 (20348)
containers even though the stable ABI policy permits them.

Find the largest LTSC <= host.Build and step one entry back for the
floor (or stay put if it is already the first entry). This keeps the
floor at the previous LTSC across an entire host generation.

Signed-off-by: yuanliang <zhang.yuanliang@hotmail.com>
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.

3 participants