Distribution | Add Alibaba Cloud Linux 3 Support - #4439
Draft
Xynnn007 wants to merge 6 commits into
Draft
Conversation
Built-in modules are listed in modules.builtin and are not .ko files, so modinfo has nothing useful to return for them. Older modinfo (e.g. on Alibaba Cloud Linux 3) even exits non-zero when asked about builtins, which aborts dependency resolution. Only query names that map to loadable module files; keep modules.builtin for dependency warnings. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
--force was added in systemd 246. When the tools tree provides an older systemd-firstboot (for example Alibaba Cloud Linux 3's systemd 239), passing --force makes the firstboot step fail. Gate the flag on the tools binary version. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
--disable-shim-lock was added in GRUB 2.06. Older grub-mkimage (for example Alibaba Cloud Linux 3's GRUB 2.02) rejects the unknown option and fails image generation. Probe --help and only pass the flag when supported. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
RHEL-family grub2-efi packages ship /boot/grub2/grubenv as a symlink to a %ghost file under /boot/efi/EFI/<vendor>/grubenv. When that target is absent, systemd-repart CopyFiles=/boot:/ fails while populating the ESP. Create a minimal grubenv at the symlink target before installing grub. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
Add alinux as a CentOS-variant installer for release 3, with Aliyun mirrors, EPEL 8 sibling layout, SHA1 rpm-sequoia policy for the vendor key, and a grubby stub around kernel package installation so dnf5 does not abort on failing %posttrans scriptlets. Document the distribution and cover repository/GPG helpers with unit tests. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com> Signed-off-by: qianyue.zj <qianyue.zj@alibaba-inc.com>
Include alinux in the shared CentOS-family Match groups, and split out packages missing on Alibaba Cloud Linux 3 / EPEL 8 (btrfs-progs, gh, virtiofsd, systemd-ukify, systemd-resolved, systemd-boot, wireless-regdb) so other distributions keep the same package sets. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
Contributor
|
Thank you for the contribution. I will have a look at this in the coming days, currently busy with other things. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alibaba Cloud Linux 3 (alinux) is Alibaba Cloud's enterprise Linux distribution. Release 3 is built on Anolis OS 8 and is compatible with the CentOS 8 / RHEL 8 package ecosystems. This PR adds
Distribution=alinuxsupport to mkosi for Alibaba Cloud Linux 3, implemented as a CentOS-family variant, plus a few compatibility fixes needed for older tooling commonly found on that stack (GRUB 2.02, systemd 239, older modinfo).Concretely:
alinuxinstalleralinuxinto the shared CentOS-family Match groupscc @jiazhang0