aboutsummaryrefslogtreecommitdiffstats
path: root/tools/resize_root.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2019-12-05 07:56:49 +0100
committerJybz <j.biernacki@free.fr>2019-12-05 07:56:49 +0100
commit7d2a3797c3da434f32542b21ab3ebe9f6ee36124 (patch)
tree790f30e1ff6600e12faec5fee9a55bb3ec95c274 /tools/resize_root.sh
parentc4b658842b4f4bc8b529b484002fd00469a38e0e (diff)
parentd7c2376925bec483811b4bdada1c415b5a333b91 (diff)
downloadmageia4arm-7d2a3797c3da434f32542b21ab3ebe9f6ee36124.tar
mageia4arm-7d2a3797c3da434f32542b21ab3ebe9f6ee36124.tar.gz
mageia4arm-7d2a3797c3da434f32542b21ab3ebe9f6ee36124.tar.bz2
mageia4arm-7d2a3797c3da434f32542b21ab3ebe9f6ee36124.tar.xz
mageia4arm-7d2a3797c3da434f32542b21ab3ebe9f6ee36124.zip
sync4
Diffstat (limited to 'tools/resize_root.sh')
-rwxr-xr-xtools/resize_root.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/resize_root.sh b/tools/resize_root.sh
deleted file mode 100755
index 99aee12..0000000
--- a/tools/resize_root.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-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
- echo "install cloud-utils-growpart first. Hint : urpmi cloud-utils-growpart"
- exit 1
- fi
-
- #Check the partition :
- e2fsck -f ${ROOT_PARTITION}
-
- #Change the size : BUG: app doesn't support "octet".
- LC_ALL=C growpart ${DEVICE} ${ROOT_PARTITION}
-
- #Resize the partition with the new size :
- 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