mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-02-22 08:42:48 +01:00
add system update tools
This commit is contained in:
parent
ef9c29177f
commit
c7b653aec0
@ -45,16 +45,13 @@ rootfs()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo "Installing new rootfs"
|
echo "Installing new rootfs"
|
||||||
cd $TMP_MOUNT
|
if ! tar --same-owner -xpvf "$path" -C $TMP_MOUNT; then
|
||||||
if ! tar --same-owner -xpvf "$path" .; then
|
|
||||||
echo "Error: unable to install new rootfs. Restore and quit"
|
echo "Error: unable to install new rootfs. Restore and quit"
|
||||||
cd
|
|
||||||
umount $TMP_MOUNT
|
umount $TMP_MOUNT
|
||||||
dd if=$backup_file of=$ROOTFS_DEV
|
dd if=$backup_file of=$ROOTFS_DEV
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
sync
|
sync
|
||||||
cd
|
|
||||||
echo "Unmount the rootfs partition"
|
echo "Unmount the rootfs partition"
|
||||||
umount $TMP_MOUNT
|
umount $TMP_MOUNT
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user