mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #2957 from chewitt/fs-resize
busybox: don't fix GPT tables when partition scheme is MBR
This commit is contained in:
commit
6ecbcd284a
@ -48,8 +48,11 @@ if [ -e /storage/.please_resize_me ] ; then
|
||||
echo "Please do not reboot or turn off your @DISTRONAME@ device!"
|
||||
echo ""
|
||||
|
||||
# fix any minor issues, such as gpt header not at end of disk
|
||||
StartProgress spinner "Checking layout... " "sgdisk -e $DISK &>/dev/null"
|
||||
# identify the partition scheme, and if gpt fix minor issues such as gpt header not at end of disk
|
||||
SCHEME=$(blkid -s PTTYPE -o value $DISK)
|
||||
if [ "$SCHEME" = "gpt" ]; then
|
||||
StartProgress spinner "Checking layout... " "sgdisk -e $DISK &>/dev/null"
|
||||
fi
|
||||
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user