On 10/17/24 16:01, Michael Vetter wrote:
@@ -246,12 +246,12 @@ function unload_lp() { function disable_lp() { local mod="$1"
- log "% echo 0 > /sys/kernel/livepatch/$mod/enabled"
- echo 0 > /sys/kernel/livepatch/"$mod"/enabled
- log "% echo 0 > $SYSFS_KLP_DIR/$mod/enabled"
- echo 0 > "$SYSFS_KLP_DIR"/mod"/enabled
Nit: syntax error here, should be (quotation fix and $mod is a variable):
echo 0 > "$SYSFS_KLP_DIR/$mod/enabled"
With that, the test works for me.