Skip to content

Commit

Permalink
Sync whole root partition
Browse files Browse the repository at this point in the history
  • Loading branch information
ardangelo committed Sep 3, 2023
1 parent 1e9fbe3 commit 6804a6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions root_overlay/sbin/update_buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ ROOT_OFFSET=$(( $UNITS * $ROOT_LBA ))
mkdir -p $BASE
mount -o loop,offset=$ROOT_OFFSET $IMG_DEST $BASE

# Sync updates
for dir in /bin /etc/init.d /etc/wlan.d /etc/udev /lib /opt /sbin /usr /var; do
rsync -avx -T /tmp $BASE/$dir/ $dir/
done
# Sync root partition
rsync -avx -T /tmp --exclude /boot --exclude /home $BASE/ /

echo "Update completed successfully!"
cleanup
Expand Down

0 comments on commit 6804a6a

Please sign in to comment.