Commit Graph
59 Commits
Author SHA1 Message Date
David Heinemeier Hansson d9d8dc50c6 No longer used 2025-09-13 19:10:38 +02:00
David Heinemeier Hansson 045db5b028 Inline the configurator 2025-09-13 18:39:45 +02:00
David Heinemeier Hansson 2427a177f5 Yank out the online builder option
Offline is the way
2025-09-13 18:23:31 +02:00
Ryan Hughes 657011cc20 Unify builds 2025-09-12 00:48:58 -04:00
Ryan Hughes 6b3f0cdc27 Overwrite the file 2025-09-12 00:48:41 -04:00
Ryan Hughes ea707f677d Rearrange and simplify ISO setup 2025-09-12 00:48:41 -04:00
Ryan Hughes 22988b2f3b Remove redundant cache mount 2025-09-12 00:48:41 -04:00
Ryan Hughes 3f64ac5656 Name cache dir appropriately 2025-09-12 00:48:41 -04:00
Ryan Hughes c089a3b6f7 Tons of tweaks to reach working v1 2025-09-12 00:48:41 -04:00
Ryan HughesandDavid Heinemeier Hansson f4b6222c1c Preserve firmware with reuse + use local pacman cache if you have it (#28)
* Keep firmware vars too if we run as reuse

* Leverage local cache for faster builds if we have it

* Convenience

* Also set the URL

* Normally do want boot

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
2025-08-30 08:37:37 +02:00
David Heinemeier Hansson d70b94ecd1 Normally do want boot 2025-08-28 17:24:11 +02:00
David Heinemeier Hansson abada98cd1 Also set the URL 2025-08-28 17:20:36 +02:00
David Heinemeier Hansson 55cafe60dc Convenience 2025-08-28 17:20:27 +02:00
David Heinemeier Hansson a58c65a241 Streamline process for pushing both master and dev ISOs 2025-08-28 10:24:37 +02:00
David Heinemeier Hansson 5d2ef89e3a Make it possible to change the installer URL 2025-08-28 08:57:45 +02:00
David Heinemeier Hansson 58c5c3d820 Need the script name 2025-08-27 12:05:31 +02:00
David Heinemeier Hansson 720c2ba5c9 Leave this out for now 2025-08-27 12:04:15 +02:00
David Heinemeier Hansson 57988b693d No we are shipping the real thing 2025-08-25 14:25:52 +02:00
David Heinemeier Hansson 67a980f77e Bare is dead 2025-08-25 14:23:38 +02:00
David Heinemeier Hansson 69ab7e1c41 Shorter 2025-08-25 12:54:10 +02:00
David Heinemeier Hansson 80f8e64f0b Clean up paths 2025-08-25 12:53:45 +02:00
David Heinemeier Hansson b856d28a0b Fix var 2025-08-25 12:51:15 +02:00
David Heinemeier Hansson cce7b363ed Fix paths 2025-08-25 12:50:08 +02:00
David Heinemeier Hansson a91275d467 Fix variable dashing 2025-08-25 12:48:57 +02:00
David Heinemeier Hansson 347dc3cf67 Use fixed name for release 2025-08-25 12:47:57 +02:00
David Heinemeier Hansson 56be85f6c4 Casing 2025-08-25 12:47:50 +02:00
David Heinemeier Hansson f79901c0c9 Use fixed name 2025-08-25 12:45:58 +02:00
David Heinemeier Hansson e257a3e05d Always manually testing first 2025-08-25 12:44:24 +02:00
David Heinemeier Hansson 0590f653a6 Just pull the right gpg key directly 2025-08-25 12:43:16 +02:00
David Heinemeier Hansson 3f06820726 Show progress 2025-08-24 08:11:31 +02:00
David Heinemeier Hansson a87e978bff Correct path 2025-08-23 23:12:32 +02:00
David Heinemeier Hansson 0c91e351ea By default we should be wiping things clean 2025-08-23 22:47:36 +02:00
Ryan Hughes 35bd1df498 Add support for variable repo and refs (#23)
* Add ability to define repo / refs to use

* Add bare mode
2025-08-23 08:52:00 +02:00
David Heinemeier Hansson 967445310a Add a full release flow 2025-08-21 16:05:26 +02:00
David Heinemeier Hansson 1fead8ec7a Add omarchy-iso-sign 2025-08-20 21:44:02 +02:00
David Heinemeier Hansson ab32317f21 Explain boot order 2025-08-20 21:32:00 +02:00
David Heinemeier Hansson eb24316db1 It's a number 2025-08-20 21:28:35 +02:00
David Heinemeier Hansson 01398a7ea7 Just always use 8GB
Simpler, enough
2025-08-20 21:28:16 +02:00
David Heinemeier Hansson abdbec85da No need to get the latest 2025-08-20 21:26:57 +02:00
David Heinemeier Hansson bdee10a1d6 Failure to not go 2025-08-20 21:26:52 +02:00
David Heinemeier Hansson 9d0faa4c58 Boil iso-boot down to its essence 2025-08-20 21:24:11 +02:00
Ryan Hughes 72d9eaa417 Persist firmware if --storage is defined, fix video, and remove --headless (#11)
* Persist firmware if --storage is defined

* Fix video device to be correct to work with hyprland

* Remove headless
2025-08-20 15:52:10 +02:00
David Heinemeier Hansson ef2a295852 Separate 2025-08-20 13:48:36 +02:00
David Heinemeier Hansson 4565d89fea Fix latest_iso finder 2025-08-20 13:38:15 +02:00
David Heinemeier Hansson 06ac075d24 Offer to boot newly built ISO 2025-08-20 13:29:42 +02:00
David Heinemeier Hansson 4f206eb599 Move all files under the builder 2025-08-20 11:44:24 +02:00
David Heinemeier Hansson cb078cc13a Clean up the online installer 2025-08-20 09:37:18 +02:00
David Heinemeier Hansson e2183fefee Not used any more 2025-08-19 20:17:43 +02:00
Jarek 272932f13d Enhance boot script: Add --boot-from-disk option (#10)
* Fix omarchy-iso-boot for Arch Linux systems

- Add omarchy-iso-boot-arch with proper OVMF detection
- Auto-install missing dependencies (qemu-full, edk2-ovmf)
- Support KVM acceleration with fallback
- Better error handling and user feedback
- Memory auto-adjustment based on system resources
- Support both UEFI and BIOS boot modes

Fixes #3

* Fix display issues in boot script

- Fixed display configuration for BIOS and UEFI modes
- Added OpenGL support with gtk,gl=on
- Use virtio-vga for BIOS mode (better performance)
- Remove problematic virgl property that caused errors
- Fixed print_info bug in BIOS mode

BIOS mode confirmed working with display and OpenGL.
UEFI mode may need additional work for some systems.

Workaround: Use --bios flag for reliable display output

* Fix UEFI boot - now works without --bios flag

- Fixed critical bug: was copying OVMF_CODE instead of OVMF_VARS
- Fixed boot order: CD-ROM now has bootindex=1 for proper UEFI boot
- Unified display config: virtio-vga with OpenGL for both modes
- Both UEFI and BIOS modes now fully functional

Tested and confirmed working:
- UEFI mode boots ISO correctly
- BIOS mode continues to work
- Display and OpenGL acceleration enabled
- No need for --bios workaround anymore

* Fix Issue #7: Enable passwordless sudo in ISO

- Add sudoers configuration to allow NOPASSWD sudo during installation
- Resolves password prompts that break automated installation
- Creates /etc/sudoers.d/99-omarchy-installer in the ISO
- Allows both root and wheel group users passwordless sudo access

This enables 'wget https://omarchy.org/install | bash' to run
without interruption for sudo password input.

Fixes #7

* Fix Issue #7: Copy sudoers config to chroot target system

The sudoers NOPASSWD configuration wasn't working because the
installer runs in arch-chroot which has its own /etc/sudoers.

This copies the sudoers configuration from the ISO to the target
system before running the chroot installer, enabling passwordless
sudo inside the chroot environment.

Resolves sudo password prompts that break automated installation.

Fixes #7

* Fix Issue #7: Add specific user to sudoers for chroot

The chroot runs as a specific user, but that user might not be in the
wheel group. This explicitly adds the target user to sudoers in the
target system to ensure passwordless sudo works in chroot.

This should resolve remaining sudo password prompts during installation.

Fixes #7

* Enhance boot script: Add --boot-from-disk option

Adds ability to boot from installed disk instead of ISO after installation.

Features:
- New --boot-from-disk flag prioritizes disk boot over ISO
- Configurable boot order via bootindex (disk=1, ISO=3)
- Clear user feedback about boot mode
- Maintains backward compatibility (ISO-first by default)

Usage:
  ./bin/omarchy-iso-boot omarchy.iso --boot-from-disk

This enables testing the installed Omarchy system after reboot
without manually changing boot priority.

* Implement automatic boot order for seamless installation-to-disk transition

Implements David's request using Ryan Hughes' elegant solution:
smart boot ordering that automatically handles both installation
and post-install boot without manual intervention.

How it works:
- Disk set as bootindex=1 (highest priority)
- ISO set as bootindex=2 (fallback)
- Empty disk fails to boot -> UEFI/BIOS falls back to ISO
- After installation, disk is bootable -> boots automatically

This simple approach achieves the desired behavior without
complex monitoring or runtime boot order changes.

Credits: Ryan Hughes for the elegant boot order solution

Testing confirmed:
- Installation: Empty disk fails, boots from ISO
- Post-install: Disk is bootable, boots from disk
- No manual intervention required
2025-08-19 20:17:21 +02:00
David Heinemeier Hansson 200265a73e Already have this 2025-08-19 18:32:50 +02:00