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