fix rootflags for btrfs update (#2315)

This commit is contained in:
Aiden McClelland
2023-06-21 15:26:27 +00:00
committed by GitHub
parent b3f32ae03e
commit 95b3b55971

View File

@@ -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}