Merged
Conversation
wkz
approved these changes
Apr 27, 2023
When calling 'make skeleton-init-finit-rebuild' to (re)install any new or modified services, we cannot remove everything installed already. That breaks what other packages may have installed already and is not the Buildroot way. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The root user is by default not allowed to log in over SSH, so we add an admin user with limited root privileges for this purpose. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
With the new templating support in Finit, and this patch, we can now
very easily enable a ZeroConf service on, e.g., eth0:
$ initctl enable zeroconf@eth0
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This patch adds a first Infix model to augment ietf-ip with a node, similar to the IPv6 'autoconf' node, also for IPv4. For IPv6 the autoconf feature comes built-in, for IPv4 it is defined in RFC3927. The setting behaves the same as for IPv6, but in the case of IPv4 we enable avahi-autoipd per interface to acquire the 169.254/16 address. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This is very ugly, what we really want is that the commit_done_hook() runs when *all* DONE events have been processed in all models. The side-effect of this hack is that the callback is run twice, both for ietf-systm and ietf-interfaces if both are modified. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Consistent naming to match startup-config.cfg and running-config.cfg Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The idea is to, as a plain Infix default, start up devices with DHCP and IPv4LL/ZeroConf and IPv6 link-local address. Using mDNS the user can then and push a NETCONF configuration over SSH. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Still ways to go here, eth0 should be in a bridge with a vlan1 interface on top, which in turn should have this config. But let's start here, it works! :-) Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This build is intended as a base reference and for use as a very simple end device. The default starts DHCP and IPv4LL (ZeroConf) on eth0, but can be configured by editing /etc/network/interfaces.d/* Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Drop unused packages in NETCONF (default) mode In the default build we will use the net tool instead of iupdown-ng, p-net & Profeth will move to customer-specifc builds with another licensing model. - Split out NETCONF specific parts from board/common to board/netconf Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
A long standing internal debate comes to its logical conclusion. Arch naming should follow GCC. The "native /etc" has also found a better name: classic! README and GitHub action has been updated accordingly. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- board/common: drop everything not needed by NETCONF mode - board/classic: most board/common helpers relocated here - Simplify Finit scripts for critical services - Source variant from /etc/os-release to select ramdisk /etc Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
80648cc to
6dfa8e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
amd64_defconfigandaarch64_defconfiginto four new. The classic variant is with managed by writing to/etc(read-writable across reboots), and the plain one is the default NETCONF variant:/etc/network/interfaces.d/eth0that also has a DHCP client enabled using dhcpcd.board/common/rootfs/etchave been relocated toboard/classic/rootfs/etcboard/common/rootfs/lib/infixhave been relocated toboard/classic/rootfs/lib/infix.conffiles have been simplified, stripping out allif:boot/fooconditionalsThe
clean-etcscript has been kept almost as-is for the NETCONF variant, when we have more support for controlling critical services from the CLI/factory-config it can be removed.The GitHub action has been updated to four different variants now. See this build for details: https://github.com/kernelkit/infix/actions/runs/4816175056