diff options
author | Frode Nordahl <frode.nordahl@canonical.com> | 2022-07-14 17:55:38 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-07-15 13:43:39 +0200 |
commit | 02428f7151ea7940864812e19280a4c7b2ae85cb (patch) | |
tree | f1966d3d498fd9deaab62324a3924627d0e1ebe5 /debian/openvswitch-switch.postinst | |
parent | 92eb03f7b03a332b45d6edb2a8b5fa2e1c40d71f (diff) | |
download | openvswitch-02428f7151ea7940864812e19280a4c7b2ae85cb.tar.gz |
debian: Archive debian packaging source.
The packaging source in the OVS repository has drifted away from
what is currently in Debian and Ubuntu. This state is problematic
because from time to time someone tries to build packages from the
upstream OVS debian package source and then expect that package to
work with up-/down-grades from-/to/ distro versions.
To support the on-going work to remove the out of tree OVS kernel
driver from the repository [0], an update to the debian packaging
is also required. On the back of the discussion in [0] we agreed
that replacing the current version with what Debian and Ubuntu
is currently converging on would be preferable.
This commit is a first in a series to update the upstream OVS
debian packaging source to be up to date with what is currently
in Debian and Ubuntu.
0: https://mail.openvswitch.org/pipermail/ovs-dev/2022-June/394634.html
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'debian/openvswitch-switch.postinst')
-rwxr-xr-x | debian/openvswitch-switch.postinst | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst deleted file mode 100755 index f8abd40e2..000000000 --- a/debian/openvswitch-switch.postinst +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# postinst script for openvswitch-switch -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <postinst> `configure' <most-recently-configured-version> -# * <old-postinst> `abort-upgrade' <new version> -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> -# <new-version> -# * <postinst> `abort-remove' -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' -# <failed-install-package> <version> `removing' -# <conflicting-package> <version> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - DEFAULT=/etc/default/openvswitch-switch - TEMPLATE=/usr/share/openvswitch/switch/default.template - if ! test -e $DEFAULT; then - cp $TEMPLATE $DEFAULT - fi - # Certain versions of upstream Ubuntu's openvswitch packages (which - # are forks) may install upstart files which are incompatible - # with the packages generated from this repo. Remove them. - if [ -e "/etc/init/openvswitch-switch.conf" ]; then - rm /etc/init/openvswitch-switch.conf - fi - if [ -e "/etc/init/openvswitch-force-reload-kmod.conf" ]; then - rm /etc/init/openvswitch-force-reload-kmod.conf - fi - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# Do not fail package installation just because the kernel module -# is not available. -OVS_MISSING_KMOD_OK=yes -export OVS_MISSING_KMOD_OK - -# force-reload-kmod during upgrade. If a user wants to override this, -# they can set the variable OVS_FORCE_RELOAD_KMOD=no while installing. -[ -z "${OVS_FORCE_RELOAD_KMOD}" ] && OVS_FORCE_RELOAD_KMOD=yes || true -export OVS_FORCE_RELOAD_KMOD - -#DEBHELPER# - -exit 0 |