🚧 refind: typo

This commit is contained in:
Vladislav Nepogodin 2023-04-02 03:37:43 +04:00
parent 6b79c9942f
commit 4c527fe61a
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -1144,7 +1144,7 @@ void install_refind() noexcept {
// Mount as rw
// sed -i 's/ro\ /rw\ \ /g' /mnt/boot/refind_linux.conf
// Set appropriate rootflags if installed on btrs subvolume
// Set appropriate rootflags if installed on btrfs subvolume
if (utils::exec("mount | awk '$3 == \"/mnt\" {print $0}' | grep btrfs | grep -qv subvolid=5", true) == "0") {
const auto& rootflag = fmt::format(FMT_COMPILE("rootflags={}"), utils::exec("mount | awk '$3 == \"/mnt\" {print $6}' | sed 's/^.*subvol=/subvol=/' | sed -e 's/,.*$/,/p' | sed 's/)//g'"));
utils::exec(fmt::format(FMT_COMPILE("sed -i \"s|\\\"$|\\ {}\\\"|g\" /mnt/boot/refind_linux.conf"), rootflag));