Skip to content
Permalink
Browse files

Telegram, sd* resizing, Docker

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 5, 2019
1 parent ca50fd0 commit 77a702467c32a53d5996b9fed4be54ac108c3ec7
Showing with 12 additions and 0 deletions.
  1. +12 −0 resize_rootfs/nems-fs-resize
@@ -26,8 +26,20 @@ set -x

# Detect the drive and partition
fulldev=`/bin/mount | /bin/sed -n 's|^/dev/\(.*\) on / .*|\1|p'`
if [[ $fulldev == "" ]]; then
echo "Could not determine your root device."
exit 1
fi

rootdev=`echo $fulldev | cut -d "p" -f 1`
if [[ $rootdev == $fulldev ]]; then
rootdev="${fulldev//[!a-z]/}"
fi

rootpart=`echo $fulldev | cut -d "p" -f 2`
if [[ $rootpart == $fulldev ]]; then
rootpart="${fulldev//[!0-9]/}"
fi

resize() {
start=$(fdisk -l /dev/${rootdev}|grep /dev/${rootdev}p${rootpart}|awk '{print $2}')

0 comments on commit 77a7024

Please sign in to comment.
You can’t perform that action at this time.