Merge "Use sudo to create loop device on gate nodes"
This commit is contained in:
commit
22e895dcb9
@ -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