1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

mkosi: Switch from btrfs to ext4

Mounting multiple btrfs filesystems with the same fsid only works
properly from kernel 6.7 onwards. Let's switch to ext4 for now which
does support this.
This commit is contained in:
Daan De Meyer 2024-05-28 23:15:25 +02:00
parent 09466b2a0e
commit 3c367df7c6
5 changed files with 4 additions and 13 deletions

View File

@ -14,6 +14,9 @@ MinimumVersion=23~devel
Environment=ASAN_OPTIONS=verify_asan_link_order=false Environment=ASAN_OPTIONS=verify_asan_link_order=false
MKOSI_ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:disable_coredump=0:use_madv_dontdump=1 MKOSI_ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:disable_coredump=0:use_madv_dontdump=1
MKOSI_UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1 MKOSI_UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1
# The kernel versions in CentOS Stream 9 and Ubuntu 22.04 don't support orphan_file, but later
# versions of mkfs.ext4 enabled it by default, so we disable it explicitly.
SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"
@SELinuxRelabel=no @SELinuxRelabel=no
BuildSourcesEphemeral=yes BuildSourcesEphemeral=yes

View File

@ -8,6 +8,3 @@ Distribution=centos
Repositories=epel Repositories=epel
epel-next epel-next
hyperscale-packages-main hyperscale-packages-main
[Content]
Environment=SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"

View File

@ -3,9 +3,6 @@
[Match] [Match]
Distribution=centos Distribution=centos
[Output]
RepartDirectories=mkosi.repart
[Content] [Content]
Packages= Packages=
rpmautospec-rpm-macros rpmautospec-rpm-macros

View File

@ -1,6 +0,0 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Partition]
# btrfs isn't supported on CentOS. Ideally we'd use xfs instead but we lose xattrs when doing rootless
# population of xfs which is required for testing SELinux so let's do ext4 instead.
Format=ext4

View File

@ -2,7 +2,7 @@
[Partition] [Partition]
Type=root Type=root
Format=btrfs Format=ext4
CopyFiles=/ CopyFiles=/
SizeMinBytes=8G SizeMinBytes=8G
SizeMaxBytes=8G SizeMaxBytes=8G