dustin
/
jenkinsagent
Archived
1
0
Fork 0
Buildroot configuration for network-booted Jenkins agent system.
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
Go to file
Dustin c972de572c rootfs: Sync time with NTP using chrony
By default, *dhcpcd* generates a "complete" `chrony.conf` file using the
NTP servers specified in the DHCP lease, and then restarts the Chrony
daemon.  This is unnecessary, as *chrony* can reload its list of
sources without restarting, and also problematic in our case.  For one
thing, *dhcpcd* tries to write to `/etc/chrony.conf` directly, which is
obviously impossible when the root filesystem is immutable.
Fortunately, it is flexible enough to be configured to leave
`/etc/chrony.conf` alone and generate a different file and then tell
*chrony* to reread it.

The *chrony-wait.service* unit introduces a delay into the system
startup that allows follow-up units to wait until the system time is
confirmed correct.  The unit file itself was derived from the one
included in the *chrony* package for Fedora.
2022-03-15 14:18:29 -05:00
configs rootfs: Sync time with NTP using chrony 2022-03-15 14:18:29 -05:00
initramfs initramfs: Mount proc et al. earlier 2022-03-12 16:04:58 -06:00
rootfs rootfs: Sync time with NTP using chrony 2022-03-15 14:18:29 -05:00
.gitignore Initial commit 2022-03-09 00:27:30 -06:00
Config.in Initial commit 2022-03-09 00:27:30 -06:00
README.md Initial commit 2022-03-09 00:27:30 -06:00
cmdline.txt Initial commit 2022-03-09 00:27:30 -06:00
config.txt Initial commit 2022-03-09 00:27:30 -06:00
external.desc Initial commit 2022-03-09 00:27:30 -06:00
external.mk Initial commit 2022-03-09 00:27:30 -06:00

README.md

Network-Booted Jenkins Agent

Required Build Host Configuration

sudo dnf install -y \
	ncurses-devel \
	perl-ExtUtils-MakeMaker \
	perl-FindBin \
	perl-Thread-Queue \
	--
git clone git://git.buildroot.net/buildroot ~/src/buildroot

Build

Build the Initramfs

make -C ~/src/buildroot O=${PWD}/_build/initramfs BR2_EXTERNAL=${PWD} jenkinsagent_initramfs_defconfig
make -C _build/initramfs -j $(nproc)

Build the Rootfs

make -C ~/src/buildroot O=${PWD}/_build/rootfs BR2_EXTERNAL=${PWD} jenkinsagent_defconfig
make -C _build/rootfs -j $(nproc)