Fix expand-root script to work for Debian 8 and simplify how partition

types are forumlated.
This commit is contained in:
Zach Marano 2015-06-24 12:41:06 -07:00
parent fbcb53cd71
commit c682dab6ec

View file

@ -15,7 +15,7 @@ logger="logger -t $prog"
device_path="/dev/xvda" device_path="/dev/xvda"
filesystem=`blkid | grep $device_path | sed 's#\(.*\):.*TYPE="\(.*\)".*#\2#'` filesystem=$(blkid -s TYPE -o value ${device_path})
case $filesystem in case $filesystem in
xfs) xfs_growfs / ;; xfs) xfs_growfs / ;;