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
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user