Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/image-builder/config/kickstart.ks.template
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,11 @@ if ostree remote show-url edge | grep -q '^file:///var/lib/ostree-local' ; then
ostree summary --repo ${ostree_repo}/repo --update
fi

%end
# Disable a timer that sets boot_success to 1 after two minutes from a user login.
# It impacts greenboot checks because grub script decrementing boot_counter works
# only if boot_success is 0 (see /etc/grub.d/08_fallback_counting). In case of a
# user login, this results in more than requested amount of red-boot-induced reboots
# and system needing much more time to roll back.
ln -sf /dev/null /etc/systemd/user/grub-boot-success.timer

%end
7 changes: 7 additions & 0 deletions test/kickstart-templates/kickstart.ks.template
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,11 @@ for uuid in $(nmcli -f uuid,type,autoconnect connection | awk '$2 == "ethernet"
sed -i '/autoconnect=.*/d' "${file}"
done

# Disable a timer that sets boot_success to 1 after two minutes from a user login.
# It impacts greenboot checks because grub script decrementing boot_counter works
# only if boot_success is 0 (see /etc/grub.d/08_fallback_counting). In case of a
# user login, this results in more than requested amount of red-boot-induced reboots
# and system needing much more time to roll back.
ln -sf /dev/null /etc/systemd/user/grub-boot-success.timer

%end
15 changes: 0 additions & 15 deletions test/resources/ostree.resource
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,6 @@ System Is Running Right Ref And Healthy
Greenboot Health Check Exited
System Should Be Healthy

Mask Grub Boot Success Timer
[Documentation] Effectively disable a timer that sets boot_success
... to 1 after two minutes from user login.
... It impacts tests because grub's script to decrement boot_counter
... works only if boot_success is 0 (see /etc/grub.d/08_fallback_counting)
... resulting in more than requested amount of redboot induced reboots
... and system needing much more time to roll back.
${out} ${err} ${rc}= Execute Command
... systemctl --user mask grub-boot-success.timer
... return_stdout=True
... return_stderr=True
... return_rc=True

Should Be Equal As Integers ${rc} 0

Wait For Transaction To End
[Documentation] Wait for any ostree transaction to end.
... When grub boots previous deployment due to greenboot failure,
Expand Down
1 change: 0 additions & 1 deletion test/suites-ostree/fdo.robot
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ FIDO Onboarding Device
... MicroShift data, unhealthy stored in health file,
... and a deployment gap (no-microshift rollback).

Mask Grub Boot Success Timer
System Should Not Feature MicroShift
TestAgent.Add Action For Next Deployment every fail_greenboot
Deploy Commit Expecting A Rollback ${FAILING_REF}
Expand Down