summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/g-i-installation.sh2
-rw-r--r--etc/sudoers.d/jenkins1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index da2961a1..475ac8d5 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -246,7 +246,7 @@ boot_system() {
# qemu related variables (incl kernel+initrd) - display first, as we grep for this in the process list
QEMU_OPTS="-display vnc=$DISPLAY -no-shutdown -enable-kvm -cpu host"
echo "Checking $LV:"
- FILE=$(file -Ls $LV)
+ FILE=$(sudo file -Ls $LV)
if [ $(echo $FILE | grep -E '(x86 boot sector|DOS/MBR boot sector)' | wc -l) -eq 0 ] ; then
echo "ERROR: no x86 boot sector found in $LV - its filetype is $FILE."
exit 1
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index 65bd907d..605ac66f 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -17,6 +17,7 @@ jenkins ALL= \
/bin/mount --bind *, \
/usr/bin/du *, \
/bin/kill -9 *, \
+ /usr/bin/file *, \
/usr/bin/qemu-system-x86_64 *, \
/usr/bin/qemu-img *, \
/sbin/lvcreate *, /sbin/lvremove *, \