summaryrefslogtreecommitdiff
path: root/build-chroot.sh
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-04-23 22:37:32 -0400
committerAlexander Hill <ahill@breadpudding.dev>2025-04-23 22:37:32 -0400
commit63f60ecda88045bd9710ccb9b7c1009ac08023a8 (patch)
tree971b38b3da30700ecf05caaf9768d2f1b46a8d2c /build-chroot.sh
parentddd2069627612e45cb6f46c1e3b8d2f167330e40 (diff)
Built chrony
Diffstat (limited to 'build-chroot.sh')
-rwxr-xr-xbuild-chroot.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-chroot.sh b/build-chroot.sh
index b4e8fa5..5556751 100755
--- a/build-chroot.sh
+++ b/build-chroot.sh
@@ -640,6 +640,24 @@ chmod +x /etc/init.d/dhcpcd
rc-update add dhcpcd default
cd ..
+# Chrony Build
+tar xf ../sources/chrony-*.tar*
+cd chrony-*/
+./configure --exec-prefix=/ --prefix=/usr
+make -j $THREADS
+make -j $THREADS install
+echo "cmdport 0" > /etc/chrony.conf
+echo "pool pool.ntp.org iburst maxsources 3" >> /etc/chrony.conf
+echo "#!/sbin/openrc-run" > /etc/init.d/chronyd
+echo "description=\"Network Time Protocol Daemon\"" >> /etc/init.d/chronyd
+echo "command=\"/sbin/chronyd\"" >> /etc/init.d/chronyd
+# I guess we should just point OpenRC to the existing PID file unless the daemon
+# doesn't make its own? ~ahill
+echo "pidfile=\"/run/chrony/chronyd.pid\"" >> /etc/init.d/chronyd
+chmod +x /etc/init.d/chronyd
+rc-update add chronyd default
+cd ..
+
# Basic Configuration
echo "root::0:0::/:/bin/zsh" > /etc/passwd
echo "root:x:0:root" > /etc/group