canonical / chisel-releases

36 stars 51 forks source link

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

Open Meulengracht opened 5 months ago

Meulengracht commented 5 months ago

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 https://github.com/canonical/chisel-releases/pull/274 since netplan requires systemd and mount libraries.

github-actions[bot] commented 5 months ago

Diff of dependencies:

slices/iproute2.yaml ```diff @@ -1,5 +1,3 @@ -debconf -debconf-2.0 libbpf1 libc6 libcap2 ```
slices/netplan.io.yaml ```diff @@ -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 ```diff @@ -1,3 +1,3 @@ libc6 libffi8 -python3 +python3.12 ```
slices/python3-dbus.yaml ```diff @@ -1,4 +1,4 @@ libc6 libdbus-1-3 libglib2.0-0t64 -python3 +python3.12 ```
slices/python3-netifaces.yaml ```diff @@ -1,2 +1,2 @@ libc6 -python3 +python3.12 ```
slices/python3-netplan.yaml ```diff @@ -1,4 +1,4 @@ libc6 libnetplan1 -python3 python3-cffi-backend +python3.12 ```
slices/python3-yaml.yaml ```diff @@ -1,3 +1,3 @@ libc6 libyaml-0-2 -python3 +python3.12 ```