1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

test: increase loop device size to 400MB

It turns out the full OS tree which is assembled into the loop-dev
mount point is bigger than 300MB. Increase the size.
This commit is contained in:
Daniel Mack 2015-11-19 13:13:31 +01:00
parent 265fb8052d
commit 1b1eae69ce

View File

@ -142,12 +142,12 @@ install_missing_libraries() {
create_empty_image() { create_empty_image() {
rm -f "$TESTDIR/rootdisk.img" rm -f "$TESTDIR/rootdisk.img"
# Create the blank file to use as a root filesystem # Create the blank file to use as a root filesystem
dd if=/dev/null of="$TESTDIR/rootdisk.img" bs=1M seek=300 dd if=/dev/null of="$TESTDIR/rootdisk.img" bs=1M seek=400
LOOPDEV=$(losetup --show -P -f $TESTDIR/rootdisk.img) LOOPDEV=$(losetup --show -P -f $TESTDIR/rootdisk.img)
[ -b "$LOOPDEV" ] || return 1 [ -b "$LOOPDEV" ] || return 1
echo "LOOPDEV=$LOOPDEV" >> $STATEFILE echo "LOOPDEV=$LOOPDEV" >> $STATEFILE
sfdisk "$LOOPDEV" <<EOF sfdisk "$LOOPDEV" <<EOF
,290M ,390M
, ,
EOF EOF