mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
mkosi: Use squashfs for sysext if mkfs.erofs is not available
CentOS Stream 10 does not have erofs-utils so let's add a fallback
to squashfs when building the sysext.
(cherry picked from commit 3cfb020cb9
)
This commit is contained in:
parent
480f8fa839
commit
945013a092
@ -38,7 +38,15 @@ EOF
|
|||||||
|
|
||||||
rm -f "$BUILDDIR"/systemd.raw
|
rm -f "$BUILDDIR"/systemd.raw
|
||||||
|
|
||||||
env --unset=SYSTEMD_REPART_OVERRIDE_FSTYPE_ROOT \
|
local fstype
|
||||||
|
|
||||||
|
if command -v mkfs.erofs; then
|
||||||
|
fstype=erofs
|
||||||
|
else
|
||||||
|
fstype=squashfs
|
||||||
|
fi
|
||||||
|
|
||||||
|
env SYSTEMD_REPART_OVERRIDE_FSTYPE_ROOT="$fstype" \
|
||||||
"$BUILDDIR"/systemd-repart \
|
"$BUILDDIR"/systemd-repart \
|
||||||
--make-ddi=sysext-unsigned \
|
--make-ddi=sysext-unsigned \
|
||||||
--copy-source="$1" \
|
--copy-source="$1" \
|
||||||
|
Loading…
Reference in New Issue
Block a user