From d48253f83a2dffe4ff2f5cad5a0ae4d860777076 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 17 Jul 2019 00:26:01 +1200 Subject: [PATCH] Allow disabling the partition check logic (#283) If you're running this script in a chroot on a server (NFSROOT), then the partition check logic will fail. --- rpi-update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpi-update b/rpi-update index 90c3e73..b449c24 100755 --- a/rpi-update +++ b/rpi-update @@ -34,6 +34,7 @@ SKIP_REPODELETE=${SKIP_REPODELETE:-0} SKIP_BACKUP=${SKIP_BACKUP:-0} SKIP_DOWNLOAD=${SKIP_DOWNLOAD:-0} SKIP_WARNING=${SKIP_WARNING:-0} +SKIP_CHECK_PARTITION=${SKIP_CHECK_PARTITION:-0} WANT_SYMVERS=${WANT_SYMVERS:-0} WANT_PI4=${WANT_PI4:-0} PRUNE_MODULES=${PRUNE_MODULES:-0} @@ -205,6 +206,9 @@ function show_notice { } function check_partition { + if [[ ${SKIP_CHECK_PARTITION} -ne 0 ]]; then + return + fi local PARTSIZE=0 if command -v df > /dev/null 2>&1 ; then local M=$(df -P ${BOOT_PATH} | awk 'END{print $1}')