Replies: 1 comment
-
Thank you for developing and sharing. This is a helpful addition for headless installs. I use dracut, but I assume the concept is portable now that you have set out the approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I recently started using ZBM and am loving it.
I've been customizing and building my own instance (container build) with dropbear, tailscale, etc. and noticed one thing missing.
If I'm away from home and there is power loss, my server gracefully shuts down. When power comes back, it automatically powers on, but then is stuck at the passphrase prompt. I may not notice that and my server may be down for a long time. I have a few somewhat critical systems on there so I'd like to have the highest uptime possible.
What I was missing was a simple notification. Thankfully, ntfy.sh does that very simply and beautifully.
So I created a mkinitcpio hook that one can include in ZBM: https://github.com/aptalca/mkinitcpio-ntfy
It has one configuration file that one can enter the server URL, message details and optional auth token. When ZBM boots, it does a simple curl request to send a notification through either the public ntfy.sh server or a self-hosted one. It also has a customizable delay so that if I'm rebooting the server and entering the passphrase right away at the console, it doesn't send an unnecessary notification.
The easiest way to integrate it into ZBM is by doing the container build as detailed here: https://docs.zfsbootmenu.org/en/latest/general/container-building/example.html#a-simple-host-specific-container-build
and following the instructions from the readme: https://github.com/aptalca/mkinitcpio-ntfy?tab=readme-ov-file#setup
Let me know how you get on. If there is interest, I'd be happy to submit a PR to ZBM docs to add instructions there.
PS. Special thanks go to @classabbyamp whose tailscale hook taught me a lot and I used it as the base for this ntfy hook.
Beta Was this translation helpful? Give feedback.
All reactions