From 7f066787fa09c331057b3b0c143d44338fb6f975 Mon Sep 17 00:00:00 2001 From: Gabriele Giacone <1o5g4r8o@gmail.com> Date: Tue, 19 Aug 2014 00:38:32 +0200 Subject: Sudo to detect logical volume file type. --- bin/g-i-installation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2