]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: drop calling "dmesg -c" from server rootfs script
authorBenjamin Drung <benjamin.drung@canonical.com>
Fri, 31 Oct 2025 17:08:21 +0000 (18:08 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 31 Oct 2025 17:29:46 +0000 (13:29 -0400)
In verbose mode (V=1), the tests already print the kernel messages.
Calling `dmesg -c` only duplicates the output and makes it harder to
read.

test/TEST-70-ISCSI/server-init.sh
test/TEST-71-ISCSI-MULTI/server-init.sh

index 36844023798d3fc1c15a7adc5e247f76a88c6635..b43b52f60fb78c72d28bb1907a9f131bd5a65c6b 100755 (executable)
@@ -79,9 +79,7 @@ tgtadm --lld iscsi --mode target --op bind --tid 3 -I 192.168.50.101
 echo "Serving iSCSI"
 while pidof tgtd > /dev/null; do
     : > /dev/watchdog
-    dmesg -c
     sleep 1
 done
-dmesg -c
 mount -n -o remount,ro /
 poweroff -f
index 0f04a8c0b678e4e27e32494e9def7747a61f4ed0..62ec42b7bed586f6771ae4cf5c9a63a7be77ba47 100755 (executable)
@@ -79,9 +79,7 @@ tgtadm --lld iscsi --mode target --op bind --tid 3 -I 192.168.50.101
 echo "Serving iSCSI"
 while pidof tgtd > /dev/null; do
     : > /dev/watchdog
-    dmesg -c
     sleep 1
 done
-dmesg -c
 mount -n -o remount,ro /
 poweroff -f