mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 15:45:53 +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:
committed by
Colin Walters
parent
c0b9cde666
commit
9185005025
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user