1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00

test: Fix factory reset Access denied error on CS10

Sometimes systemd daemons are still running old binaries and
response "Access denied" when send reboot request

Force a full sync before reboot and Allow more delay for
bootc to settle

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
This commit is contained in:
Xiaofeng Wang
2025-11-13 11:28:42 +08:00
committed by Colin Walters
parent c0b9cde666
commit 9185005025

View File

@@ -41,6 +41,15 @@ def initial_build [] {
# nu's cp doesn't have -T
/usr/bin/cp -r -T $workdir_root $"($new_stateroot_path)/($workdir_root)"
# Check reset status before reboot
RUST_LOG=trace bootc status
# Sometimes systemd daemons are still running old binaries and response "Access denied" when send reboot request
# Force a full sync before reboot
sync
# Allow more delay for bootc to settle
sleep 30sec
tmt-reboot
}