Streamline GRUB
installation
This commit is contained in:
parent
6283ed0803
commit
e4dfb6ae10
3 changed files with 37 additions and 1 deletions
scripts/Common/Software/GRUB
19
scripts/Common/Software/GRUB/main.fish
Normal file
19
scripts/Common/Software/GRUB/main.fish
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/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)"
|
||||
grub-mkconfig -o "$efiDir/grub/grub.cfg"
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue