Run dmesg command with sudo
It seems that setting "sysctl kernel.dmesg_restrict" was changed in Ubuntu 22.04 (Jammy) to "1" and because of that running "dmesg" command requires now root privileges. Closes-bug: #1994023 Change-Id: I2adc76e3025fadf994bab2e2e1fd608e688874fc
This commit is contained in:
parent
c3a82032ab
commit
5e7afb779c
@ -33,9 +33,9 @@ function load_module {
|
||||
local fatal=$2
|
||||
|
||||
if [ "$(trueorfalse True fatal)" == "True" ]; then
|
||||
sudo modprobe $module || (dmesg && die $LINENO "FAILED TO LOAD $module")
|
||||
sudo modprobe $module || (sudo dmesg && die $LINENO "FAILED TO LOAD $module")
|
||||
else
|
||||
sudo modprobe $module || (echo "FAILED TO LOAD $module" && dmesg)
|
||||
sudo modprobe $module || (echo "FAILED TO LOAD $module" && sudo dmesg)
|
||||
fi
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ function prepare_for_ovs_compilation {
|
||||
function load_ovs_kernel_modules {
|
||||
load_module openvswitch
|
||||
load_module vport-geneve False
|
||||
dmesg | tail
|
||||
sudo dmesg | tail
|
||||
}
|
||||
|
||||
# reload_ovs_kernel_modules() - reload openvswitch kernel module
|
||||
|
Loading…
Reference in New Issue
Block a user