From 9f5a51e2a9925fb9dc8ae653047cf3c278bfc613 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 9 Mar 2026 08:39:00 +0100 Subject: oci: T8366: remove features from container image which are not supported Running containers on VyOS on a container platform seems like an odd use-case so we remove it in the beginning. Also interacting with the Kernel and safety reboots will be removed from the "system options" tree. * system option kernel * system option startup-beep * system option root-partition-auto-resize * system option reboot-on-panic * system option performance --- scripts/iso-to-oci | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') diff --git a/scripts/iso-to-oci b/scripts/iso-to-oci index c9396290..3e463150 100755 --- a/scripts/iso-to-oci +++ b/scripts/iso-to-oci @@ -48,6 +48,15 @@ rm -rf $UNSQUASHFS/usr/lib/x86_64-linux-gnu/libwireshark.so* rm -rf $UNSQUASHFS/lib/modules/*amd64-vyos rm -rf $UNSQUASHFS/root/.gnupg +# delete features not supported in container - only remove the node.def files, +# this is sufficient to not make the feature pop up on the CLI +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/container +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/system/option/kernel +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/system/option/startup-beep +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/system/option/root-partition-auto-resize +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/system/option/reboot-on-panic +rm -rf $UNSQUASHFS/opt/vyatta/share/vyatta-cfg/templates/system/option/performance + # create a symbolic link to the configuration ln -s /opt/vyatta/etc/config $UNSQUASHFS/config -- cgit v1.2.3