mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 22:42:31 +08:00
🚧 refind: typo
This commit is contained in:
parent
6b79c9942f
commit
4c527fe61a
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user