Run rdate in your initramfs, before encrypted partitions are mounted. This is usefull, if you want to run time sensitive applications like wireguard in your initramfs and your device has not hardware clock.
You need to have a time server, that supports RFC
868. This is not NTP. It's a
simple protocol over TCP port 37. You can check with busybox rdate -p TIMESERVER
, if your server supports this protocol. If you want to host this
server by yourself, you can use the build-in time server of inetdor
xinetd`.
- Install the scripts with:
make install
-
Configure your time server in
/etc/rdate-initramfs/rdate.conf
. -
Rebuild your initramfs:
update-initramfs -k all -u
- reboot
MIT License