Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04): netplan.io and dependencies #276

Open
wants to merge 7 commits into
base: ubuntu-24.04
Choose a base branch
from

Conversation

Meulengracht
Copy link
Member

@Meulengracht Meulengracht commented Jul 5, 2024

Proposed changes

Add netplan and it's dependencies. Netplan is a bit useless without other networking daemons up and running (i.e systemd-networkd), and it's also quite useless without udev running. The app itself is working and the only errors it throws are due to either a chroot'ed environment or because some other system service is missing.

Testing

chisel cut bash_bins coreutils_bins passwd_config netplan.io_bins
mkdir -p <root>/proc
mkdir -p <root>/dev
mount --bind /dev <root>/dev
sudo chroot <root>
mount -t proc proc /proc
netplan --help
netplan apply # useless without udev
netplan generate
netplan status # useless without networking daemons

Checklist

Additional Context

This is based on top of #274 since netplan requires systemd and mount libraries.

Copy link

github-actions bot commented Jul 5, 2024

Diff of dependencies:

slices/iproute2.yaml
@@ -1,5 +1,3 @@
-debconf
-debconf-2.0
 libbpf1
 libc6
 libcap2
slices/netplan.io.yaml
@@ -4,9 +4,9 @@
 libnetplan1
 libsystemd0
 netplan-generator
-python3
 python3-dbus
 python3-netifaces
 python3-netplan
 python3-yaml
+python3.12
 systemd
slices/python3-cffi-backend.yaml
@@ -1,3 +1,3 @@
 libc6
 libffi8
-python3
+python3.12
slices/python3-dbus.yaml
@@ -1,4 +1,4 @@
 libc6
 libdbus-1-3
 libglib2.0-0t64
-python3
+python3.12
slices/python3-netifaces.yaml
@@ -1,2 +1,2 @@
 libc6
-python3
+python3.12
slices/python3-netplan.yaml
@@ -1,4 +1,4 @@
 libc6
 libnetplan1
-python3
 python3-cffi-backend
+python3.12
slices/python3-yaml.yaml
@@ -1,3 +1,3 @@
 libc6
 libyaml-0-2
-python3
+python3.12

@Meulengracht Meulengracht marked this pull request as ready for review August 30, 2024 09:43

# test some basic commands and against loopback that
# we can kinda expect is there
ip link | grep "LOOPBACK,UP"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please also test the other binaries being installed? I know it might be tedious, but that's the only way we can ensure the slice has all it needs for them to behave properly

@@ -0,0 +1,12 @@
#!/bin/bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are any of the scripts testable?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add some tests for these python-* SDFs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants