From efa329d6782b016dd1b95b84301e7cc155ef3372 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Aug 2018 10:26:45 +0200 Subject: runinnamespace script Helps to test the scenario of two kube instances with separate pid namespaces but shared filesystem as it can happen with flatpak. lmdb does not support that scenario due to the use of the pid for locking. --- tests/runinnamespace.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/runinnamespace.sh diff --git a/tests/runinnamespace.sh b/tests/runinnamespace.sh new file mode 100644 index 00000000..da632a51 --- /dev/null +++ b/tests/runinnamespace.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#This script helps testing the scenario where two kube instance are running in separate namespaces. This is what happens with flatpak, and it currently breaks lmdb. + +sudo unshare -fp env PATH=/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QT_PLUGIN_PATH=/install/lib64/plugins/ QML2_IMPORT_PATH=/install/lib64/qml XDG_DATA_DIRS=/install/share/ LD_LIBRARY_PATH=/install/lib64 XDG_CONFIG_DIRS=/install/share/config /install/bin/kube -- cgit v1.2.3