From 33e2e6fbc2e2ebe55432b5249aa3fa03bbb2269a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 13 Dec 2023 10:34:27 +0100 Subject: [PATCH] Allow building CentOS/Fedora default images for arm64 architecture Let's introduce a little conditionalization to allow building the CentOS/Fedora default images for arm64. --- mkosi.conf | 1 - mkosi.conf.d/15-x86-64.conf | 5 +++++ .../{20-centos-fedora.conf => 20-centos-fedora/mkosi.conf} | 2 -- mkosi.conf.d/20-centos-fedora/mkosi.conf.d/20-x86-64.conf | 7 +++++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 mkosi.conf.d/15-x86-64.conf rename mkosi.conf.d/{20-centos-fedora.conf => 20-centos-fedora/mkosi.conf} (95%) create mode 100644 mkosi.conf.d/20-centos-fedora/mkosi.conf.d/20-x86-64.conf diff --git a/mkosi.conf b/mkosi.conf index ee1839c6d..f641a64ef 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -8,7 +8,6 @@ [Content] Autologin=yes -BiosBootloader=grub ShimBootloader=signed BuildSourcesEphemeral=yes diff --git a/mkosi.conf.d/15-x86-64.conf b/mkosi.conf.d/15-x86-64.conf new file mode 100644 index 000000000..e997ac706 --- /dev/null +++ b/mkosi.conf.d/15-x86-64.conf @@ -0,0 +1,5 @@ +[Match] +Architecture=x86-64 + +[Content] +BiosBootloader=grub diff --git a/mkosi.conf.d/20-centos-fedora.conf b/mkosi.conf.d/20-centos-fedora/mkosi.conf similarity index 95% rename from mkosi.conf.d/20-centos-fedora.conf rename to mkosi.conf.d/20-centos-fedora/mkosi.conf index 9d7874047..4ed6c3332 100644 --- a/mkosi.conf.d/20-centos-fedora.conf +++ b/mkosi.conf.d/20-centos-fedora/mkosi.conf @@ -22,9 +22,7 @@ Packages= e2fsprogs edk2-ovmf erofs-utils - grub2-pc kernel-core - microcode_ctl mtools openssh-clients openssl diff --git a/mkosi.conf.d/20-centos-fedora/mkosi.conf.d/20-x86-64.conf b/mkosi.conf.d/20-centos-fedora/mkosi.conf.d/20-x86-64.conf new file mode 100644 index 000000000..6649e10fc --- /dev/null +++ b/mkosi.conf.d/20-centos-fedora/mkosi.conf.d/20-x86-64.conf @@ -0,0 +1,7 @@ +[Match] +Architecture=x86-64 + +[Content] +Packages= + microcode_ctl + grub2-pc -- 2.47.3