Skip to content

Commit 23fb6ae

Browse files
committed
uki-virt: add systemd-repart module
JIRA: https://issues.redhat.com/browse/RHEL-107274 Upstream Status: RHEL only Add systemd-repart module to dracut-virt.conf. Until RHEL-103385 is not merged, mkfs.* is not present in dracut therefore we need to manually inject it. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
1 parent f743e5b commit 23fb6ae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

redhat/dracut-virt.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ dracutmodules+=" systemd-sysext "
2727
# modules: root disk integrity protection
2828
dracutmodules+=" systemd-veritysetup "
2929

30+
# modules: root creation and encryption
31+
dracutmodules+=" systemd-repart "
32+
# FIXME: remove this once RHEL-103385 is merged
33+
install_items+=" /usr/sbin/mkfs.vfat /usr/sbin/mkfs.ext4 /usr/sbin/mkfs.xfs "
34+
3035
# modules: FIPS
3136
dracutmodules+=" fips "
3237
# FIPS mode requires early crypto drivers test

redhat/kernel.spec.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,8 @@ BuildRequires: lvm2
863863
BuildRequires: systemd-boot-unsigned
864864
# For systemd-stub and systemd-pcrphase
865865
BuildRequires: systemd-udev >= 252-1
866+
# For systemd-repart
867+
BuildRequires: xfsprogs e2fsprogs dosfstools
866868
# For UKI kernel cmdline addons
867869
BuildRequires: systemd-ukify
868870
# For TPM operations in UKI initramfs

0 commit comments

Comments
 (0)