diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-03-09 08:39:00 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-03-09 08:39:00 +0100 |
| commit | 9f5a51e2a9925fb9dc8ae653047cf3c278bfc613 (patch) | |
| tree | c81bbee1a037ff1e7ac00e27caa13941169160ff /scripts | |
| parent | fbdce6466748fd073c2042a5f92555a935bc44dd (diff) | |
| download | vyos-build-9f5a51e2a9925fb9dc8ae653047cf3c278bfc613.tar.gz vyos-build-9f5a51e2a9925fb9dc8ae653047cf3c278bfc613.zip | |
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
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/iso-to-oci | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
