[LTP] [PATCH v2] mpls01.sh: Add --allow-unsupported for modprobe
Petr Vorel
pvorel@suse.cz
Mon Sep 2 13:02:46 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
Cyril asked for more specific grep in v1
https://lore.kernel.org/ltp/ZtWV0R_oDb7BQdKm@yuki.lan/
My suggestion to change before merge:
https://lore.kernel.org/ltp/20240902110037.GD279460@pevik/
- if grep -q suse /etc/os-release; then
+ if grep -q 'sl-micro' /etc/os-release; then
Kind regards,
Petr
> + ROD modprobe --allow-unsupported mpls_router
> + else
> + ROD modprobe mpls_router
> + fi
> }
> test1()
More information about the ltp
mailing list