Use sudo to create loop device on gate nodes

TrivialFix

Change-Id: Iaa8ff2592d89a91081383e1f9c23c860bb73bba5
This commit is contained in:
Christian Berendt 2016-09-30 12:30:32 +02:00
parent 60e13ec142
commit a0dc58e099
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function setup_disk {
if [ ! -f /docker ]; then if [ ! -f /docker ]; then
sudo dd if=/dev/zero of=/docker bs=1M count=10240 sudo dd if=/dev/zero of=/docker bs=1M count=10240
losetup -f /docker sudo losetup -f /docker
DEV=$(losetup -a | awk -F: '/\/docker/ {print $1}') DEV=$(losetup -a | awk -F: '/\/docker/ {print $1}')
fi fi

View File

@ -14,7 +14,7 @@ function setup_disk {
if [ ! -f /docker ]; then if [ ! -f /docker ]; then
sudo dd if=/dev/zero of=/docker bs=1M count=20480 sudo dd if=/dev/zero of=/docker bs=1M count=20480
losetup -f /docker sudo losetup -f /docker
DEV=$(losetup -a | awk -F: '/\/docker/ {print $1}') DEV=$(losetup -a | awk -F: '/\/docker/ {print $1}')
fi fi