Installer: Fix default grub entry

This commit is contained in:
Adam Jafarov 2022-05-26 23:35:40 +03:00 committed by GitHub
parent ed74e52c8d
commit b074af50a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ full_install() {
elif [[ "${HOLO_GPU_TYPE}" == "3" ]]; then
echo "Installing gamescope for NVIDIA GPUs..."
GAMESCOPE_INSTALL=(/usr/bin/pacman --noconfirm -S --needed --overwrite="*" holoiso/nvidia-utils holoiso/nvidia-dkms holoiso/opencl-nvidia gamescope)
GRUB_UPD_CMD=(sed -i 's/splash/splash nvidia-drm.modeset=1/g' ${HOLO_INSTALL_DIR}/etc/grub.d/10_linux)
sed -i 's/splash/splash nvidia-drm.modeset=1/g' ${HOLO_INSTALL_DIR}/etc/default/grub
break
else
echo -e "You have made an invalid selection, please try again...\n"
@ -208,7 +208,6 @@ full_install() {
arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} flatpak packagekit-qt5 rsync unzip vim
arch-chroot ${HOLO_INSTALL_DIR} flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
arch-chroot ${HOLO_INSTALL_DIR} echo "recoveryinit" > /root/.bashrc
${GRUB_UPD_CMD}
arch-chroot ${HOLO_INSTALL_DIR} grub-mkconfig -o /boot/grub/grub.cfg
}