]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: make TEST-13-NSPAWN wqlong-running code more verbose
authorIvan Kruglov <mail@ikruglov.com>
Wed, 18 Dec 2024 17:50:35 +0000 (18:50 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 19 Dec 2024 17:09:04 +0000 (17:09 +0000)
Need this to debug https://github.com/systemd/systemd/issues/35115

test/units/TEST-13-NSPAWN.machined.sh

index 85eb89b14d8f5a6b8b0b9cc802570efc6edf41fc..a0a10ef30749a9ec6109fe87493d5efa9ad84999 100755 (executable)
@@ -42,6 +42,8 @@ create_dummy_container /var/lib/machines/long-running
 cat >/var/lib/machines/long-running/sbin/init <<\EOF
 #!/usr/bin/bash
 
+set -x
+
 PID=0
 
 trap 'touch /terminate; kill 0' RTMIN+3
@@ -310,6 +312,10 @@ varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.Unreg
 # test io.systemd.Machine.List with addresses, OSRelease, and UIDShift fields
 create_dummy_container "/var/lib/machines/container-without-os-release"
 cat >>/var/lib/machines/container-without-os-release/sbin/init <<\EOF
+#!/usr/bin/bash
+
+set -x
+
 ip link add hoge type dummy
 ip link set hoge up
 ip address add 192.0.2.1/24 dev hoge