Skip to content

Commit

Permalink
Remove switchdev scripts when uneeded
Browse files Browse the repository at this point in the history
Fixes issue k8snetworkplumbingwg#249

Signed-off-by: Fred Rolland <frolland@nvidia.com>
  • Loading branch information
rollandf committed Apr 14, 2022
1 parent 162c2b2 commit 8a47768
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bindata/scripts/clean-k8s-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ chroot_path="/host"

function clean_services() {
# Remove switchdev service files
rm -f $chroot_path/etc/systemd/system/switchdev-configuration.service
rm -f $chroot_path/usr/local/bin/configure-switchdev.sh
rm -f $chroot_path/etc/systemd/system/switchdev-configuration-after-nm.service
rm -f $chroot_path/etc/systemd/system/switchdev-configuration-before-nm.service
rm -f $chroot_path/usr/local/bin/switchdev-configuration-after-nm.sh
rm -f $chroot_path/usr/local/bin/switchdev-configuration-before-nm.sh
rm -f $chroot_path/etc/switchdev.conf
rm -f $chroot_path/etc/udev/switchdev-vf-link-name.sh
# The following files are no longer created by config daemon
# Remove them in case of leftovers from earlier SR-IOV network operator
rm -f $chroot_path/usr/local/bin/configure-switchdev.sh
rm -f $chroot_path/etc/systemd/system/switchdev-configuration.service

# clean NetworkManager and ovs-vswitchd services
network_manager_service=$chroot_path/usr/lib/systemd/system/NetworkManager.service
Expand Down

0 comments on commit 8a47768

Please sign in to comment.