add GRUB timeout TUI and restructure boot menu

- Rename "Boot Rescue & Repair" to "Boot Rescue + GRUB"
- Add interactive GRUB timeout settings (Disable, 3s, 5s, Custom)
- Implement robust `_set_grub_var` and `_apply_grub_setting` helpers
- Add /etc/default/grub.d/99_script_override.cfg to bypass VM/Cloud-init overrides
- Handle Secure Boot countdown policy restrictions by using menu style
- Fix independent install check for lightdm and lightdm-gtk-greeter-settings
This commit is contained in:
stornic56
2026-07-12 00:13:08 -05:00
committed by GitHub
parent f043c130a8
commit ba72fd9f87
3 changed files with 132 additions and 13 deletions
+9 -3
View File
@@ -52,14 +52,20 @@ lightdm_config_menu() {
for item in $cleaned; do
case $item in
install_lightdm)
if is_installed lightdm; then
echo -e "${GREEN}LightDM is already installed.${NC}"
if ! is_installed lightdm; then
_run_cmd "LightDM" "sudo apt install -y lightdm" "Installing LightDM..."
else
_run_cmd "LightDM" "sudo apt install -y lightdm lightdm-gtk-greeter-settings" "Installing LightDM..."
echo -e "${GREEN}[LightDM] already installed, skipping...${NC}"
fi
if ! is_installed lightdm-gtk-greeter-settings; then
_run_cmd "LightDM Settings" "sudo apt install -y lightdm-gtk-greeter-settings" "Installing LightDM Settings..."
else
echo -e "${GREEN}[LightDM Settings] already installed, skipping...${NC}"
fi
;;
enable_userlist)
local conf="/etc/lightdm/lightdm.conf.d/50-debianito-userlist.conf"
sudo mkdir -p "$(dirname "$conf")"
if echo "[Seat:*]
greeter-hide-users=false" | sudo tee "$conf" > /dev/null; then
echo -e "${GREEN}User list enabled in LightDM.${NC}"