1
0

add sync-rootfs script

This commit is contained in:
Jacques Supcik
2024-03-22 11:52:15 +00:00
parent 2a80fbec9f
commit 13cf29498f

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
rsync -crlpgoD -i \
--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/