summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGabriele Giacone <1o5g4r8o@gmail.com>2014-08-19 00:38:32 +0200
committerGabriele Giacone <1o5g4r8o@gmail.com>2014-08-19 00:38:32 +0200
commit7f066787fa09c331057b3b0c143d44338fb6f975 (patch)
tree62d4c2582876568f035fad61f8bf37d058033c2d /bin
parentcfe1855fed6503494bf5668b8382962e811dc9b3 (diff)
downloadjenkins.debian.net-7f066787fa09c331057b3b0c143d44338fb6f975.tar.xz
Sudo to detect logical volume file type.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh2
1 files changed, 1 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