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
rpmbuild -ba 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/grub
addip=dhcp rd.neednet=1
toGRUB_CMDLINE_LINUX
- rebuild the grub entries:
grub2-mkconfig -o /boot/grub2/grub.cfg
- edit
/etc/sysconfig/dracut-cloudflared-ttyd
and add yourTUNNEL_TOKEN
acquired 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