Configure dnf to use the pre-built binaries. Instructions
Building this package will fetch the latest version of cloudflared and ttyd binaries from their respective repos, then installs the module to dracut. This allow the user to answer encrypted disk password prompts remotely from a web browser.
- install build dependencies:
sudo dnf install wget dnf-plugin-builddep rpm-build sudo dnf builddep dracut-cloudflared-ttyd.specrpmbuild -bp dracut-cloudflared-ttyd.specrpmbuild -ba --define '_auto_tool_versions 1' dracut-cloudflared-ttyd.spec
sudo dnf install ~/rpmbuild/RPMS/x86_64/dracut-cloudflared-ttyd*
- a configured Cloudflare tunnel, saved token
- configured url that will prompt for the disk keys (default:
UNIX:///run/ttyd-cf.socket) - optional, but recommended: protect the url with authentication by adding a self-hosted app on Cloudflare's Zero Trust dashboard / Access / Applications
- in
/etc/default/grubaddip=dhcp rd.neednet=1toGRUB_CMDLINE_LINUX - rebuild the grub entries:
grub2-mkconfig -o /boot/grub2/grub.cfg - edit
/etc/sysconfig/dracut-cloudflared-ttydand add yourTUNNEL_TOKENacquired in the prerequisites - rebuild the initram:
dracut -f - after reboot, when the device password is prompted, you can access the prompt from the URL added on Cloudflare