Merge pull request #1466 from mglae/fix_fs-resize-8.0

Fix file system resize script hang
This commit is contained in:
Christian Hewitt 2017-03-22 20:32:26 +04:00 committed by GitHub
commit 9a749b5654
3 changed files with 41 additions and 2 deletions

View File

@ -23,7 +23,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://www.busybox.net"
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
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_SECTION="system"
PKG_SHORTDESC="BusyBox: The Swiss Army Knife of Embedded Linux"

View File

@ -63,7 +63,7 @@ if [ -e /storage/.please_resize_me ] ; then
echo ""
# 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 "Creating /storage... " "parted -s -m $DISK unit b mkpart primary $PART_START 100% &>/dev/null"

View File

@ -0,0 +1,39 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2017 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="gptfdisk"
PKG_VERSION="1.0.1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.rodsbooks.com/gdisk/"
PKG_URL="https://downloads.sourceforge.net/project/$PKG_NAME/$PKG_NAME/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain popt"
PKG_SECTION="system"
PKG_SHORTDESC="GPT text-mode partitioning tools"
PKG_LONGDESC="GPT text-mode partitioning tools"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
make sgdisk "CC=$CC" "CXX=$CXX"
}
makeinstall_target() {
mkdir -p $INSTALL/usr/sbin/
cp -p sgdisk $INSTALL/usr/sbin/
}