busybox: fix fs-resize by using sgdisk

This commit is contained in:
mglae 2017-02-19 17:56:21 +01:00
parent 01e30699f1
commit 12be174140
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://www.busybox.net" PKG_SITE="http://www.busybox.net"
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_HOST="" PKG_DEPENDS_HOST=""
PKG_DEPENDS_TARGET="toolchain busybox:host hdparm dosfstools e2fsprogs zip unzip pciutils usbutils parted procps-ng" PKG_DEPENDS_TARGET="toolchain busybox:host hdparm dosfstools e2fsprogs zip unzip pciutils usbutils parted procps-ng gptfdisk"
PKG_DEPENDS_INIT="toolchain" PKG_DEPENDS_INIT="toolchain"
PKG_SECTION="system" PKG_SECTION="system"
PKG_SHORTDESC="BusyBox: The Swiss Army Knife of Embedded Linux" PKG_SHORTDESC="BusyBox: The Swiss Army Knife of Embedded Linux"

View File

@ -63,7 +63,7 @@ if [ -e /storage/.please_resize_me ] ; then
echo "" echo ""
# fix any minor issues, such as gpt header not at end of disk # fix any minor issues, such as gpt header not at end of disk
StartProgress spinner "Checking layout... " "parted $DISK print fix &>/dev/null" StartProgress spinner "Checking layout... " "sgdisk -e $DISK &>/dev/null"
StartProgress spinner "Deleting /storage... " "parted -s -m $DISK rm 2 &>/dev/null" StartProgress spinner "Deleting /storage... " "parted -s -m $DISK rm 2 &>/dev/null"
StartProgress spinner "Creating /storage... " "parted -s -m $DISK unit b mkpart primary $PART_START 100% &>/dev/null" StartProgress spinner "Creating /storage... " "parted -s -m $DISK unit b mkpart primary $PART_START 100% &>/dev/null"