From 668434388c291a04f29af02876c82999ad42f8fb Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 2 Aug 2023 18:13:31 +0200 Subject: [PATCH] add system update tools --- recipes-diya/initramfs/files/diya-update | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-diya/initramfs/files/diya-update b/recipes-diya/initramfs/files/diya-update index acde423..08ed1fa 100755 --- a/recipes-diya/initramfs/files/diya-update +++ b/recipes-diya/initramfs/files/diya-update @@ -48,6 +48,7 @@ rootfs() cd $TMP_MOUNT if ! tar -xpvf --same-owner "$path" .; then echo "Error: unable to install new rootfs. Restore and quit" + cd umount $TMP_MOUNT dd if=$backup_file of=$ROOTFS_DEV return 1