Skip to content

initramfs-tools hook to sets the system's date from a remote host with busybox rdate

License

Notifications You must be signed in to change notification settings

AlexanderS/rdate-initramfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rdate-initramfs

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.

Requirements

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 inetdorxinetd`.

Usage

  1. Install the scripts with:
make install
  1. Configure your time server in /etc/rdate-initramfs/rdate.conf.

  2. Rebuild your initramfs:

update-initramfs -k all -u
  1. reboot

License

MIT License

About

initramfs-tools hook to sets the system's date from a remote host with busybox rdate

Resources

License

Stars

Watchers

Forks

Packages

No packages published