mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox: fix fs-resize by using sgdisk
This commit is contained in:
parent
01e30699f1
commit
12be174140
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user