Files
omarchy_setup/modules/disk-format.sh
google-labs-jules[bot] dbe9bbe4ca feat: improve keyring UX and icon manager flow
This commit introduces two main improvements to the user experience:

1.  **Refactors the Icon Manager for Non-Interactive Installation:**
    - The `icon_manager.sh` module can now be run in a non-interactive mode.
    - The "Install All" process has been updated to use this non-interactive mode, which installs the default icon theme without pausing the script or requiring user input.

2.  **Improves the GNOME Keyring Workflow:**
    - The script no longer errors out if the GNOME Keyring agent is not immediately available after installation.
    - Instead, a clear summary message is now displayed at the end of the "Install All" process, instructing the user to log out and back in, and then run the SSH key synchronization module separately. This provides a much smoother and more intuitive user experience.
2025-11-19 14:46:57 +00:00

48 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# ===============================================================
# disk-format.sh - Soporte para FAT32 / exFAT / NTFS / ext4
# ===============================================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/common.sh"
run_module_main() {
log_step "Habilitar sistemas de archivos (FAT32 / exFAT / NTFS / ext4)"
local pkgs=(
dosfstools
exfatprogs
ntfs-3g
e2fsprogs
gparted
gnome-disk-utility
)
local failed=false
for pkg in "${pkgs[@]}"; do
if ! check_and_install_pkg "$pkg"; then
failed=true
fi
done
if [[ "$failed" == true ]]; then
log_warning "Algunos paquetes no se pudieron instalar. Revisa los mensajes anteriores."
fi
log_success "Soporte de sistemas de archivos habilitado."
echo ""
log_info "Formatea manualmente con las utilidades instaladas:"
echo " • FAT32 : sudo mkfs.fat -F32 /dev/sdXn"
echo " • exFAT : sudo mkfs.exfat /dev/sdXn"
echo " • NTFS : sudo mkfs.ntfs -f /dev/sdXn"
echo " • ext4 : sudo mkfs.ext4 -F /dev/sdXn"
log_info "Alternativamente puedes usar GParted o GNOME Disks para un asistente gráfico."
return 0
}
# Ejecutar si se llama directamente
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
run_module_main "$@"
fi