1
0
Files
MSE-CSEL/.devcontainer/toolchain/scripts/sync-rootfs.sh
2024-03-22 12:01:23 +00:00

23 lines
509 B
Bash

#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
rsync -rlpgoD --itemize-changes \
--ignore-existing \
--exclude=THIS_IS_NOT_YOUR_ROOT_FILESYSTEM \
/buildroot/output/target/ \
/rootfs/
rsync -crlpgoD --itemize-changes \
--exclude=/etc/ssh/** \
--exclude=/etc/hostname \
--exclude=/etc/group \
--exclude=/etc/passwd \
--exclude=/etc/shadow \
--exclude=/etc/fstab \
--exclude=THIS_IS_NOT_YOUR_ROOT_FILESYSTEM \
/buildroot/output/target/ \
/rootfs/