Skip to content

Commit

Permalink
Add filesystem resize (ext)
Browse files Browse the repository at this point in the history
ext2/3/4 automatic volume expansion
  • Loading branch information
iczerjones authored Dec 3, 2021
1 parent f21f2ec commit 837f042
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_install/files/autolvm
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ EOF
if [[ $3 != "none" ]]; then
if [ `lvs | grep $3 | wc -l` -lt 1 ]; then
lvcreate -l 100%FREE -n $3 $2
lvextend /dev/${2}/$3 /dev/${1}1
resize2fs /dev/${2}/$3
else
lvextend /dev/${2}/$3 /dev/${1}1
resize2fs /dev/${2}/$3
fi
fi
sync; sleep 1
Expand Down

0 comments on commit 837f042

Please sign in to comment.