fix btrfs rootflags

This commit is contained in:
Aiden McClelland
2023-06-20 15:15:21 -06:00
committed by Aiden McClelland
parent 2ad749354d
commit c7472174e5

View File

@@ -31,6 +31,8 @@ local_mount_root()
modprobe ${FSTYPE} modprobe ${FSTYPE}
checkfs ${ROOT} root "${FSTYPE}" checkfs ${ROOT} root "${FSTYPE}"
ROOTFLAGS="$(echo "${ROOTFLAGS}" | sed 's/subvol=\(next\|current\)//')"
if [ "${FSTYPE}" != "unknown" ]; then if [ "${FSTYPE}" != "unknown" ]; then
mount -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt} mount -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
else else