Skip to content

Commit

Permalink
More generic solution to the blkid parse problem
Browse files Browse the repository at this point in the history
References: 230f488 and fa25d9f
  • Loading branch information
Dario Berzano committed May 16, 2014
1 parent 51ffae4 commit 88c6b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hepix/extra/hepix_functions
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 88c6b1e

Please sign in to comment.