make sure btrfs is in the initrd

This commit is contained in:
Harald Sitter
2024-07-20 20:25:24 +02:00
parent 68403ffbfa
commit 6f13a8f474
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ mount -v \
# Make sure our subvolumes exist! In particular if we introduce subvolumes after installation.
# FIXME This is a bit garbage. It'd be much tidier if we could tell repart to do this for us. But in some sort of
# safe mode so it doesn't twiddle the partition table.
# FIXME does this even work? do we have btrfs util in the initrd?
[ -d "${sysroot}/system/@root" ] || btrfs subvolume create "${sysroot}/system/@root"
mount -v \

View File

@@ -7,7 +7,8 @@ build() {
/usr/lib/systemd/systemd-volatile-root \
/usr/bin/_kdeos-overlay \
/usr/lib/systemd/system-generators/kdeos-live-generator \
/usr/lib/systemd/systemd-bootchart
/usr/lib/systemd/systemd-bootchart \
/usr/bin/btrfs
map add_systemd_unit \
systemd-volatile-root.service \