From 89c7c36a23f94f770865fa166ef1fb2b0c54520b Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 1 Feb 2019 23:58:26 +0200 Subject: [PATCH] fwupdate: remove cleanupgrade command --- board/common/overlay/sbin/fwupdate | 39 +----------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/board/common/overlay/sbin/fwupdate b/board/common/overlay/sbin/fwupdate index 9751ba5ce9..d9097227eb 100755 --- a/board/common/overlay/sbin/fwupdate +++ b/board/common/overlay/sbin/fwupdate @@ -12,7 +12,6 @@ function exit_usage() { echo " fwupdate flashreboot (prepares for reboot + root partititon flash)" echo " fwupdate status (shows the current firmware updating status; see below)" echo " fwupdate upgrade (performs all the operations necessary for upgrading)" - echo " fwupdate cleanupgrade (same as upgrade, but remove data partition, preserving config files)" echo "" echo "Statuses:" echo " idle" @@ -212,7 +211,7 @@ function download_status() { #### extract #### function run_pre_upgrade() { - which losetup &>/dev/null || return + which losetup &>/dev/null || return 0 root_start=$(cat ${FW_DIR}/${ROOT_INFO_FILE} | cut -d ' ' -f 1) tmp_mnt="/tmp/fwupdate_root" @@ -494,16 +493,6 @@ function backup_conf() { tar -acf /boot/backup-etc-${OS_VERSION}.tar.gz -C /data etc } -function remove_data_part() { - echo "removing data partition..." - fdisk ${DISK_DEV} >/dev/null <