Skip to content

Commit bfe5516

Browse files
committed
NOTIC: Speedup populate jail job
1 parent 1ec9c60 commit bfe5516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/populate_jail/populate_jail_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo "Delete everything from jail directory"
1414
rm -rf -- /mnt/jail/..?* /mnt/jail/.[!.]* /mnt/jail/*
1515

1616
echo "Rclone and rsync jail rootfs into jail directory"
17-
rclone copy /jail /mnt/jail --progress --transfers="$(nproc)" --links
17+
rclone copy /jail /mnt/jail --progress --transfers="$(( $(nproc) * 2 ))" --links
1818
rsync --verbose --archive --one-file-system --xattrs --numeric-ids --sparse --acls --hard-links /jail/ /mnt/jail/
1919

2020
echo "Set permissions for jail directory"

0 commit comments

Comments
 (0)