mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-19 12:41:05 +00:00
chore: Remove Hide GRUB Menu option from Desktop
This commit is contained in:
parent
7b7f08870d
commit
5df2dced44
@ -51,12 +51,6 @@ screens:
|
||||
default: false
|
||||
packages:
|
||||
- Retrieve Greenlight: just --unstable get-greenlight
|
||||
Hide GRUB Menu:
|
||||
description: |
|
||||
NOTE: Press the escape key before boot to show the menu
|
||||
default: false
|
||||
packages:
|
||||
- Hide GRUB: sudo -A just --unstable hide-grub
|
||||
Nix Package Manager:
|
||||
description: Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible
|
||||
default: false
|
||||
|
@ -208,40 +208,6 @@ enable-vgui2-theme:
|
||||
echo "This is only supported under GNOME."
|
||||
fi
|
||||
|
||||
# Set system to boot without showing the grub screen with options
|
||||
hide-grub:
|
||||
#!/usr/bin/env bash
|
||||
sudo sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
|
||||
echo 'GRUB_TIMEOUT_STYLE=hidden' | sudo tee -a /etc/default/grub 1>/dev/null
|
||||
echo 'GRUB_HIDDEN_TIMEOUT=1' | sudo tee -a /etc/default/grub 1>/dev/null
|
||||
if [ -f '/boot/efi/EFI/fedora/grub.cfg' ]; then
|
||||
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||
else
|
||||
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
fi
|
||||
|
||||
# Set system to boot with the grub screen showing options (Default)
|
||||
unhide-grub:
|
||||
#!/usr/bin/env bash
|
||||
sudo sed -i '/GRUB_HIDDEN_TIMEOUT=1/d' /etc/default/grub
|
||||
sudo sed -i '/GRUB_TIMEOUT_STYLE=hidden/d' /etc/default/grub
|
||||
sudo sed -i 's/GRUB_TIMEOUT=0/GRUB_TIMEOUT=5/g' /etc/default/grub
|
||||
if [ -f '/boot/efi/EFI/fedora/grub.cfg' ]; then
|
||||
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||
else
|
||||
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
fi
|
||||
|
||||
# Sign the current OCI OSTree Image (If unsigned)
|
||||
sign-image:
|
||||
source /etc/default/bazzite && \
|
||||
ublue-update --wait && \
|
||||
if grep -qvz "/var/${IMAGE_VENDOR}/image" <<< $(rpm-ostree status); then \
|
||||
rpm-ostree rebase ostree-image-signed:$(just --unstable _get-image); \
|
||||
else \
|
||||
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/${IMAGE_VENDOR}/${IMAGE_NAME}:${FEDORA_MAJOR_VERSION}; \
|
||||
fi
|
||||
|
||||
# Use stock gamepad drivers
|
||||
use-stock-gamepads:
|
||||
#!/usr/bin/env bash
|
||||
@ -262,6 +228,16 @@ use-ublue-gamepads:
|
||||
enable-flatpak-theming:
|
||||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=~/.icons:ro --filesystem=~/.themes:ro
|
||||
|
||||
# Sign the current OCI OSTree Image (If unsigned)
|
||||
sign-image:
|
||||
source /etc/default/bazzite && \
|
||||
ublue-update --wait && \
|
||||
if grep -qvz "/var/${IMAGE_VENDOR}/image" <<< $(rpm-ostree status); then \
|
||||
rpm-ostree rebase ostree-image-signed:$(just --unstable _get-image); \
|
||||
else \
|
||||
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/${IMAGE_VENDOR}/${IMAGE_NAME}:${FEDORA_MAJOR_VERSION}; \
|
||||
fi
|
||||
|
||||
_get-image:
|
||||
#!/usr/bin/env python
|
||||
from json import loads
|
||||
|
Loading…
x
Reference in New Issue
Block a user