Streamline GRUB
installation
This commit is contained in:
parent
6283ed0803
commit
e4dfb6ae10
|
@ -80,7 +80,7 @@ begin
|
||||||
and runHook installDrivers "Installing drivers..." || true
|
and runHook installDrivers "Installing drivers..." || true
|
||||||
and runInOS fish "$tempDir/../../Common/Software/nix/main.fish" configure user
|
and runInOS fish "$tempDir/../../Common/Software/nix/main.fish" configure user
|
||||||
and arch-chroot "$mountDir" bash "$tempDir/../Software/sudo/install.sh"
|
and arch-chroot "$mountDir" bash "$tempDir/../Software/sudo/install.sh"
|
||||||
and arch-chroot "$mountDir" bash "$tempDir/../Software/GRUB/install.sh"
|
and runInOS fish "$tempDir/../Software/GRUB/main.fish"
|
||||||
|
|
||||||
and USER_NAME="$USER_NAME" \
|
and USER_NAME="$USER_NAME" \
|
||||||
USER_DISPLAYNAME="$USER_DISPLAYNAME" \
|
USER_DISPLAYNAME="$USER_DISPLAYNAME" \
|
||||||
|
|
17
scripts/Arch/Software/GRUB/main.fish
Normal file
17
scripts/Arch/Software/GRUB/main.fish
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/env fish
|
||||||
|
begin
|
||||||
|
set -l dir (status dirname)
|
||||||
|
source "$dir/../../Scripts/software.fish"
|
||||||
|
source "$dir/../../../Common/Software/GRUB/main.fish"
|
||||||
|
|
||||||
|
function installSW -V dir
|
||||||
|
pacinst \
|
||||||
|
grub \
|
||||||
|
efibootmgr \
|
||||||
|
os-prober
|
||||||
|
|
||||||
|
configureSW
|
||||||
|
end
|
||||||
|
|
||||||
|
runInstaller $argv
|
||||||
|
end
|
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…
Reference in a new issue