mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-07-16 05:49:49 +00:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user