Update 05-grow-rootfs

workaround for debian (the mtab is different to the output of mount)
pull/43/head
laurencegill 9 years ago
parent 525a507d3f
commit c89e3f73fe

@ -19,6 +19,9 @@ if [ $(grep mapper /etc/fstab |grep ' / ' |wc -l) -eq 0 ]; then
fi fi
if [ "${LVM}" != "no" ]; then if [ "${LVM}" != "no" ]; then
if [ -f /etc/debian_version ]; then
DEVICE=$(mount | grep ' / ' | grep -v '^rootfs'|cut -d' ' -f1)
fi
PVRESIZE=$(which pvresize) PVRESIZE=$(which pvresize)
LVEXTEND=$(which lvextend) LVEXTEND=$(which lvextend)
DISK=$(pvdisplay |grep "PV Name"|awk '{print $3}'|sed 's/.$//') DISK=$(pvdisplay |grep "PV Name"|awk '{print $3}'|sed 's/.$//')

Loading…
Cancel
Save