diff --git a/test-cases/apertis-update-manager-powercut.yaml b/test-cases/apertis-update-manager-powercut.yaml index 006e3cb2a5a6cbf0031c9fc38f975cb8ddb70485..3f0d900278b04b4767522c673a9495d80b973a7e 100644 --- a/test-cases/apertis-update-manager-powercut.yaml +++ b/test-cases/apertis-update-manager-powercut.yaml @@ -45,6 +45,11 @@ run: - "The booted commit (started with '*') must have ID which we prepare and the initial commit ID should be marked as '(rollback)'" - "Remove the initial deployment" - $ sudo ostree admin undeploy 1 + - "Add udev rule for limiting the maximal read speed from USB drive to 1MBps." + - $ sudo tee /etc/udev/rules.d/99-usblimit.rules <<"EOF" + - | + >KERNEL=="sd*", SUBSYSTEMS=="usb", ACTION=="add", ENV{DEVTYPE}=="disk", ENV{MAJOR}=="8", RUN+="/bin/sh -c 'echo $env{MAJOR}:$env{MINOR} 1048576 > /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device'" + EOF - "Reboot the system" - "Check the current deployment" - $ sudo ostree admin status