Skip to content
Snippets Groups Projects
Commit f3c5c5a6 authored by Walter Lozano's avatar Walter Lozano
Browse files

out-of-space: Use busybox dd


Since rust-coreutils does not not provide dd yet, use busybox dd.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 2087848d
No related branches found
No related tags found
1 merge request!28Workaround rust-coreutils issues
......@@ -30,7 +30,7 @@ phase_test_update_does_not_start_if_disk_too_low()
local DISKSPACE=$(df -P -B 1M / | grep / | awk '{ print $2-$3-'$MAGIC' }')
# Fill the disk
dd if=/dev/zero of=/var/bigfile bs=1M count=$DISKSPACE
busybox dd if=/dev/zero of=/var/bigfile bs=1M count=$DISKSPACE
# Ensure the update did not apply
if apply_update_sync -d $DELTAFILE ; then
......@@ -53,7 +53,7 @@ phase_update_stops_safely_if_disk_too_low()
# Fill the disk
local MAGIC=25
local DISKSPACE=$(df -P -B 1M / | grep / | awk '{ print $2-$3-'$MAGIC' }')
dd if=/dev/zero of=/var/bigfile bs=1M count=$DISKSPACE
busybox dd if=/dev/zero of=/var/bigfile bs=1M count=$DISKSPACE
# Ensure the update did not apply
if apply_update_sync -d $DELTAFILE ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment