Commit Graph

18 Commits (a0a2b66ccff6b1830c60dec9e5931668b142f8b8)

Author SHA1 Message Date
Amir Alexander Abdelbaki a0a2b66ccf feat(installer): show croc log-send TUI on install error
On any ERR, both installers now trap the failure, log the line/exit
code, and pop a dialog yes/no asking whether to send the log to another
system via croc. Falls back to a plain read prompt if dialog is absent.
Added dialog and croc to packages.extra so they are present in the live ISO.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 19:28:43 +02:00
Amir Alexander Abdelbaki 319af7bde7 fix(installer): add logging to guided installer and fix NVMe partition naming
- Add full session logging (tee to logfile) to archbaseos-guided-install.sh,
  matching the pattern already in arch-autoinstall.sh; copy log to /mnt/boot/
  at the end so it survives into the new system
- Add part() helper to both installers so NVMe/eMMC drives use the correct
  'p' separator (e.g. /dev/nvme0n1p1 instead of the broken /dev/nvme0n11)
- Add disk size guard to arch-autoinstall.sh: fail early with a clear message
  if ROOT_GIB would be < 8GiB instead of passing a nonsense value to parted

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 18:54:57 +02:00
Amir Alexander Abdelbaki 6ccc91303f fix(setup): port KEYMAPS+vconsole support to auto-installer and answerfile generator
arch-autoinstall.sh was missing the keymap handling added to the guided
installer in the previous two commits, so booting the ISO in auto mode
(answerfile embedded) never called loadkeys and left the installed system
with no /etc/vconsole.conf.

- Add the same KEYMAPS array + selection logic to arch-autoinstall.sh
  (AF mode reads .keymap, interactive mode prompts)
- Call loadkeys and export KEYMAP into the chroot
- Write /etc/vconsole.conf inside the chroot
- Add keymap dialog to generate-answerfile.sh so the field is populated
- Document .keymap in the arch-autoinstall.sh answerfile field list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 00:01:19 +02:00
Amir Alexander Abdelbaki e25dd231cb installer: add no-encryption option and auto LUKS backup key
Both arch-autoinstall.sh and archbaseos-guided-install.sh now ask
whether to enable disk encryption. If skipped, btrfs is formatted
directly on the root partition with an appropriate plain GRUB cmdline
(root=UUID=... rootflags=subvol=@).

When encryption is chosen, a 64-byte random key is generated, enrolled
as a second LUKS keyslot, and written to /_LUKS_BACKUP_KEY inside the
new system (mode 400, root-owned, inside the encrypted container).

Also fixes: duplicate 'encrypt' hook in original mkinitcpio HOOKS
strings, missing KERNEL export into arch-autoinstall chroot heredoc.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 15:24:29 +02:00
Amir Alexander Abdelbaki a56d27888c setup: add archiso profile and run tui-install inside chroot
- Add setup/archiso/ with build.sh, releng overlay, motd, and
  install-arch launcher command for the live ISO
- Fix cryptroot mapper name in arch-autoinstall.sh (was 'root',
  breaking all subsequent mounts)
- Add base-devel to pacstrap in both installers (required for yay/makepkg)
- Clone dotfiles inside chroot so tui-install.sh is available immediately
- After base install, offer to run tui-install.sh as the regular user
  inside the chroot via runuser, with a temporary NOPASSWD sudoers rule;
  skip option available for base-only installs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 13:46:49 +02:00
Amir Alexander Abdelbaki fef9cfc235 Update setup/arch-autoinstall.sh 2025-12-03 09:54:04 +01:00
Amir Alexander Abdelbaki 91ed6145b9 set bootloader ID 2025-12-03 09:52:48 +01:00
Amir Alexander Abdelbaki e786e66b59 being extra safe with the KMs i'm adding 2025-12-03 09:45:36 +01:00
Amir Alexander Abdelbaki 6a2e6be98e added more initramfs hooks 2025-12-03 09:35:13 +01:00
Amir Alexander Abdelbaki ab1ae16319 fixed Cryptsetup command mayyybeeeee????? 2025-12-03 09:25:51 +01:00
Amir Alexander Abdelbaki b59212937d var fix kernel install? 2025-11-29 15:35:39 +01:00
Amir Alexander Abdelbaki 7594ae1e91 pactrap -K 2025-11-29 15:24:59 +01:00
Amir Alexander Abdelbaki daa8490601 manually set kernel when mkinicpio 2025-11-29 15:01:18 +01:00
Amir Alexander Abdelbaki 486f32443b chmod 2025-11-29 12:58:03 +01:00
Amir Alexander Abdelbaki 82742c122c install now get left in bootpart 2025-11-29 12:53:50 +01:00
Amir Alexander Abdelbaki 110e55ee11 autoinstall logging - vars 2025-11-29 12:05:32 +01:00
Amir Alexander Abdelbaki 992dcbafaf autoinstall logging 2025-11-29 11:59:33 +01:00
Amir Alexander Abdelbaki 533932c02c also why not pass it to another llm, to speed the BS up 2025-11-29 05:21:34 +01:00