Use sudo to create loop device on gate nodes
TrivialFix Change-Id: Iaa8ff2592d89a91081383e1f9c23c860bb73bba5
This commit is contained in:
parent
60e13ec142
commit
a0dc58e099
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user