From 88c6b1eac255e7d0b808c5a907aa1699cd546d47 Mon Sep 17 00:00:00 2001 From: Dario Berzano Date: Fri, 16 May 2014 18:56:13 +0200 Subject: [PATCH] More generic solution to the blkid parse problem References: 230f488ba8 and fa25d9f0e1 --- hepix/extra/hepix_functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hepix/extra/hepix_functions b/hepix/extra/hepix_functions index 2d2a61b..02e42ff 100644 --- a/hepix/extra/hepix_functions +++ b/hepix/extra/hepix_functions @@ -88,8 +88,8 @@ getResourcesFromCD() { rdisk=$dev # Extract filesystem type of device - fstype=$( blkid $rdisk | sed -e 's/SEC_TYPE//' | grep -o -E 'TYPE="[0-9a-zA-Z]+' ) - fstype=${fstype:6} + fstype=$( blkid $rdisk | grep -o -E ' TYPE="[0-9a-zA-Z]+' ) + fstype=${fstype:7} if [ "x$fstype" = "xiso9660" -o "x$fstype" = "xvfat" ]; then logger -t $0 "Attempting to mount contextualization image from $rdisk"