From dc4f547e5f7a23082ad3618b6a59f94a91323724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B0=91=E5=8B=87?= Date: Fri, 2 Sep 2022 16:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BA=9F=E5=BC=83=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/local-bottom/kybackup | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/backup-daemon/data/initramfs-tools/scripts/local-bottom/kybackup b/backup-daemon/data/initramfs-tools/scripts/local-bottom/kybackup index 597864c..9c5b067 100755 --- a/backup-daemon/data/initramfs-tools/scripts/local-bottom/kybackup +++ b/backup-daemon/data/initramfs-tools/scripts/local-bottom/kybackup @@ -286,7 +286,6 @@ NEED_BACKUP= NEED_RESTORE= NEED_ROLLBACK= NEED_RETAIN_USERDATA= -NOMAL_START= # 针对 BACKUP_FLAG 为简单字符串(非键值对)的情况,可以这样获取内核参数。 for x in $(cat /proc/cmdline); do case $x in @@ -308,7 +307,6 @@ for x in $(cat /proc/cmdline); do FACTORY_RESTORE=y ;; *) - NOMAL_START=y ;; esac done @@ -516,24 +514,6 @@ if [ "$NEED_ROLLBACK" = "y" ]; then reboot -f fi -#出厂还原时用户有残留 -if [ "x${NOMAL_START}" = "xy" ]; then - bootinfo=${rootmnt}/etc/.bootinfo - backuptool_hook=${rootmnt}/etc/backuptool_hook - if [ -e $bootinfo ]; then - sed -n 's/^CMD=//g'p $bootinfo > $backuptool_hook - sed -i '/^CMD=/d' $bootinfo - if `sed -n '1p' $backuptool_hook`; then - mount_fstab_efi ${rootmnt} mount - while read LINE - do - eval "$LINE" - done < $backuptool_hook - fi - rm -rf $backuptool_hook - fi -fi - # 否则 # TODO 执行mount_fstab_efi ${rootmnt} mount备份操作