2024-07-16 20:18:39 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
2024-11-01 12:12:16 +00:00
|
|
|
source "$dir/../../../lib/settings.fish"
|
|
|
|
source "$dir/../../../lib/software.fish"
|
2024-07-16 20:18:39 +00:00
|
|
|
|
|
|
|
function configureSW
|
2024-09-22 15:50:05 +00:00
|
|
|
set -l efiDir (getOSConfig boot.efiMountPoint)
|
2024-07-16 20:18:39 +00:00
|
|
|
|
|
|
|
sudo sed -i \
|
|
|
|
-e "s/#\(GRUB_DISABLE_OS_PROBER\)/\1/" \
|
|
|
|
/etc/default/grub
|
|
|
|
|
2024-09-22 15:50:05 +00:00
|
|
|
sudo grub-install --target=x86_64-efi --efi-directory="$efiDir" --bootloader-id="$(getOSConfig 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
|