From a0dc58e09903347cc1725546c229fc2bdb4c5e38 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 30 Sep 2016 12:30:32 +0200 Subject: [PATCH] Use sudo to create loop device on gate nodes TrivialFix Change-Id: Iaa8ff2592d89a91081383e1f9c23c860bb73bba5 --- tools/setup_Debian.sh | 2 +- tools/setup_RedHat.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/setup_Debian.sh b/tools/setup_Debian.sh index ce167bb719..2648684516 100755 --- a/tools/setup_Debian.sh +++ b/tools/setup_Debian.sh @@ -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 diff --git a/tools/setup_RedHat.sh b/tools/setup_RedHat.sh index f9e6a4fe36..cffe176bb4 100755 --- a/tools/setup_RedHat.sh +++ b/tools/setup_RedHat.sh @@ -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