MAJ
This commit is contained in:
parent
431f9c1c0c
commit
f667080ee4
@ -4,6 +4,8 @@ DEVICE="/dev/mmcblk0"
|
||||
ROOT_PARTITION="${DEVICE}p1"
|
||||
ROOT_PARTITION="1"
|
||||
|
||||
echo "Warning : this an early version to resize the root partition. Check the source code to ensure what you are doing."
|
||||
if [ ${1} = "force" ]; then
|
||||
#Check dependency
|
||||
hash growpart
|
||||
if [ ${?} -ne 0 ]; then
|
||||
@ -22,6 +24,9 @@ resize2fs ${ROOT_PARTITION}
|
||||
|
||||
#Sync (just to be sure)
|
||||
sync
|
||||
else
|
||||
echo "If you read the source code, you should not have read that message... Exiting with out touching the partition."
|
||||
fi
|
||||
|
||||
#Quit
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user