From 95b3b55971a43056052117095701a1fdfd561368 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Wed, 21 Jun 2023 15:26:27 +0000 Subject: [PATCH] fix rootflags for btrfs update (#2315) --- build/lib/scripts/embassy-initramfs-module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/lib/scripts/embassy-initramfs-module b/build/lib/scripts/embassy-initramfs-module index 965f1aef2..2a2f08a07 100755 --- a/build/lib/scripts/embassy-initramfs-module +++ b/build/lib/scripts/embassy-initramfs-module @@ -31,7 +31,7 @@ local_mount_root() modprobe ${FSTYPE} checkfs ${ROOT} root "${FSTYPE}" - ROOTFLAGS="$(echo "${ROOTFLAGS}" | sed 's/subvol=\(next\|current\)//')" + ROOTFLAGS="$(echo "${ROOTFLAGS}" | sed 's/subvol=\(next\|current\)//' | sed 's/^-o *$//')" if [ "${FSTYPE}" != "unknown" ]; then mount -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}