Merge "Use sudo to create loop device on gate nodes"

This commit is contained in:
Jenkins 2016-10-14 16:14:32 +00:00 committed by Gerrit Code Review
commit 22e895dcb9
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function setup_disk {
if [ ! -f /docker ]; then
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}')
fi

View File

@ -14,7 +14,7 @@ function setup_disk {
if [ ! -f /docker ]; then
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}')
fi