Skip to content

Add Limine + Snapper support - #998

Merged
dhh merged 16 commits into
omacom:devfrom
ryanrhughes:limine-snapper
Aug 23, 2025
Merged

dhh merged 16 commits into
omacom:devfrom
ryanrhughes:limine-snapper

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Aug 23, 2025 •

Copy link
Copy Markdown
Collaborator

While these changes are targeted for the ISO, they actually do have compatibility with someone just choosing Limine as well. This relies directly on omacom/omarchy-configurator#4 and omacom/omarchy-iso#23 in order to test it end-to-end.

With the ISO branch checked out or PR merged, this command will run the whole thing.

OMARCHY_INSTALLER_REPO="ryanrhughes/omarchy" \
OMARCHY_INSTALLER_REF="limine-snapper" \
OMARCHY_CONFIGURATOR_REPO="ryanrhughes/omarchy-configurator" \
OMARCHY_CONFIGURATOR_REF="restore-limine" ./bin/omarchy-iso-make

Limine

Limine is brought in here as the standard that should be used going forward. As such, I've split out the login files a touch to place all of the systemd, GRUB, etc. in their own file. Ultimately; I'd like to drop this file altogether and only support Limine as a bootloader going forward.

When installed via the ISO, we add the EFI entry for the user so they'll go straight into the OS and only see the bootloader if they hit esc, del, etc to access their UEFI menu, and select Limine.

Limine is also configured with default fallback so that if a user's NVRAM is cleared altogether, they should still be able to boot.

Limine Styling

Limine doesn't give a lot of options when it comes to the look / feel. I chose to pass in the colors for Tokyo Night for consistency elsewhere, and to have snapshots show their format as just the date instead of ID + date. I've looked at the code for limine-snapper-sync and it looks like it'd be pretty easy to add some options there so there may be some opportunity to upstream some more robust snapshot naming so we could have the version number in the actual title instead of down in the bottom left.

You can remove the indention but it doesn't remove the arrows or collapsing and is honestly really confusing and messy looking to me so I left the indention.

We can add a background image if we want but that's about the extent of our options that I've been able to find. However, given that the bootloader is only to be seen if you need to boot a snapshot at this point, I feel like it's OK for it to be a little more utilitarian.

screenshot-2025-08-23_00-18-43

Snapshots

Snapshots are brought in with Snapper and limited to 5 with the default hourly snapshots shut off. When an omarchy-update is ran, we snapshot before the run so that we can capture that version in the comment for reference. You can see that reference in the bottom left corner from the bootloader.

screenshot-2025-08-23_00-19-41

When booting into a snapshot, a notification appears and is not dismissed (hence mako.ini updates). If clicked, this will start the restoration process. (Note: exporting the TERMINAL var is to make this work with the terminal detection of limine-snapper-sync.

omarchy-snapshot was added as the central tool to allow us to create / restore snapshots. I anticipate this tooling can expand over time but it's simple for now.

Fixed #722

Bonus: Move keyboard hook up

This now fixes #214 on Limine by moving the keyboard entry up before the autodetect which we found solves the issue with this particular keyboard.

Comment thread config/uwsm/env
@@ -1,5 +1,6 @@
export OMARCHY_PATH=$HOME/.local/share/omarchy
export PATH=$OMARCHY_PATH/bin/:$PATH
export TERMINAL=alacritty

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limine-snapper-sync has a built in function that shows a notification if you boot into a snapshot. If you click the notification, it'll start the restore process but it needs to have this in place to know what terminal to run.

screenshot-2025-08-23_00-21-38

invisible=false


[urgency=critical]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's pull all these out into a separate PR

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I pull this; this is also directly related to the restore snapshot notification from limine-snapper-sync. Otherwise, it dismisses pretty quickly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh okay. Thought it was just included by a mistake. Fine to keep then.

@dhh
dhh merged commit d440305 into omacom:dev Aug 23, 2025
OmarSkalli pushed a commit to OmarSkalli/omarchy that referenced this pull request Aug 26, 2025
* Persist urgent notifications

* Create omarchy-snapshot

* Create snapshot before pulling

* Extract alternative bootloader configs

* Add limine-snapper config

* Fix check

* Update login scripts

* Make chroot friendly

* Extract cmdline instead of using blkid due to error

* Add restore command

* Export $TERMINAL so we get clickable restore notifications

* Remove sync -- causes errors...we have nothing to sync yet

* Executable

* Minor cleanup and compatibility for non-ISO

* Give login its own section

* Give no-arg guard and inline commands

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
jakeprime pushed a commit to jakeprime/omarchy that referenced this pull request Aug 26, 2025
* Persist urgent notifications

* Create omarchy-snapshot

* Create snapshot before pulling

* Extract alternative bootloader configs

* Add limine-snapper config

* Fix check

* Update login scripts

* Make chroot friendly

* Extract cmdline instead of using blkid due to error

* Add restore command

* Export $TERMINAL so we get clickable restore notifications

* Remove sync -- causes errors...we have nothing to sync yet

* Executable

* Minor cleanup and compatibility for non-ISO

* Give login its own section

* Give no-arg guard and inline commands

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs pushed a commit to gocs/omarchy that referenced this pull request Aug 28, 2025
* Persist urgent notifications

* Create omarchy-snapshot

* Create snapshot before pulling

* Extract alternative bootloader configs

* Add limine-snapper config

* Fix check

* Update login scripts

* Make chroot friendly

* Extract cmdline instead of using blkid due to error

* Add restore command

* Export $TERMINAL so we get clickable restore notifications

* Remove sync -- causes errors...we have nothing to sync yet

* Executable

* Minor cleanup and compatibility for non-ISO

* Give login its own section

* Give no-arg guard and inline commands

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs pushed a commit to gocs/omarchy that referenced this pull request Aug 28, 2025
* Persist urgent notifications

* Create omarchy-snapshot

* Create snapshot before pulling

* Extract alternative bootloader configs

* Add limine-snapper config

* Fix check

* Update login scripts

* Make chroot friendly

* Extract cmdline instead of using blkid due to error

* Add restore command

* Export $TERMINAL so we get clickable restore notifications

* Remove sync -- causes errors...we have nothing to sync yet

* Executable

* Minor cleanup and compatibility for non-ISO

* Give login its own section

* Give no-arg guard and inline commands

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs pushed a commit to gocs/omarchy that referenced this pull request Aug 28, 2025
* Persist urgent notifications

* Create omarchy-snapshot

* Create snapshot before pulling

* Extract alternative bootloader configs

* Add limine-snapper config

* Fix check

* Update login scripts

* Make chroot friendly

* Extract cmdline instead of using blkid due to error

* Add restore command

* Export $TERMINAL so we get clickable restore notifications

* Remove sync -- causes errors...we have nothing to sync yet

* Executable

* Minor cleanup and compatibility for non-ISO

* Give login its own section

* Give no-arg guard and inline commands

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
@ryanrhughes
ryanrhughes deleted the limine-snapper branch October 14, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants