mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-07-13 14:14:23 +02:00
Compare commits
1 Commits
ef9c29177f
...
c7b653aec0
Author | SHA1 | Date | |
---|---|---|---|
c7b653aec0 |
@ -45,16 +45,13 @@ rootfs()
|
||||
return 1
|
||||
fi
|
||||
echo "Installing new rootfs"
|
||||
cd $TMP_MOUNT
|
||||
if ! tar --same-owner -xpvf "$path" .; then
|
||||
if ! tar --same-owner -xpvf "$path" -C $TMP_MOUNT; then
|
||||
echo "Error: unable to install new rootfs. Restore and quit"
|
||||
cd
|
||||
umount $TMP_MOUNT
|
||||
dd if=$backup_file of=$ROOTFS_DEV
|
||||
return 1
|
||||
fi
|
||||
sync
|
||||
cd
|
||||
echo "Unmount the rootfs partition"
|
||||
umount $TMP_MOUNT
|
||||
echo "Done"
|
||||
|
Reference in New Issue
Block a user