Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions build/meta-usr/recipes-usr/linux/usr-linux_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ python do_deploy() {
# starts over from it.
#
# -rlt, not -a: see the p2 copy below.
#
# rootfs/fs is the builder's symlink to WORKDIR/fs, and rsync run as
# root refuses to follow a symlink an ordinary user owns: hand it the
# resolved directory.

try:
utils_sudo(["rsync", "-rlt", "--keep-dirlinks",
deploy_src + "/", f"{IB_ROOTFS_PATH}/fs/"], check=True)
utils_sudo(["rsync", "-rlt", "--keep-dirlinks", deploy_src + "/",
os.path.realpath(f"{IB_ROOTFS_PATH}/fs") + "/"], check=True)
except Exception:
utils_sudo(["rm", "-rf", os.path.join(d.getVar('WORKDIR'), "fs")])
raise
Expand Down
Loading