PortValhalla/scripts/Common/Software/GRUB/main.fish

20 lines
552 B
Fish
Raw Normal View History

2024-07-16 20:18:39 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/config.fish"
source "$dir/../../Scripts/software.fish"
function configureSW
set -l efiDir (getConfig valhalla.boot.efiMountPoint)
sudo sed -i \
-e "s/#\(GRUB_DISABLE_OS_PROBER\)/\1/" \
/etc/default/grub
sudo grub-install --target=x86_64-efi --efi-directory="$efiDir" --bootloader-id="$(getConfig valhalla.boot.label)"
2024-07-16 21:13:41 +00:00
sudo grub-mkconfig -o "$efiDir/grub/grub.cfg"
2024-07-16 20:18:39 +00:00
end
runInstaller $argv
end