[LTP] [PATCH v2] mpls01.sh: Add --allow-unsupported for modprobe
Wei Gao
wegao@suse.com
Mon Sep 2 04:40:17 CEST 2024
In sle-micro we encounter following error when do modprobe:
root# modprobe mpls_router
modprobe: ERROR: module 'mpls_router' is unsupported
modprobe: ERROR: Use --allow-unsupported or set allow_unsupported_modules 1 in
modprobe: ERROR: /etc/modprobe.d/10-unsupported-modules.conf
modprobe: ERROR: could not insert 'mpls_router': Operation not permitted
Signed-off-by: Wei Gao <wegao@suse.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
---
testcases/network/mpls/mpls01.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/testcases/network/mpls/mpls01.sh b/testcases/network/mpls/mpls01.sh
index 196b5b2f9..957f9d153 100755
--- a/testcases/network/mpls/mpls01.sh
+++ b/testcases/network/mpls/mpls01.sh
@@ -21,7 +21,11 @@ cleanup()
setup()
{
- ROD modprobe mpls_router
+ if grep -q suse /etc/os-release; then
+ ROD modprobe --allow-unsupported mpls_router
+ else
+ ROD modprobe mpls_router
+ fi
}
test1()
--
2.35.3
More information about the ltp
mailing list