Skip to content
Merged
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
7 changes: 7 additions & 0 deletions build-scripts/prepare-testmachine-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ sudo mkdir -p ${CHROOT_ROOT}run

sudo mkdir -p ${CHROOT_ROOT}root

# rsync may skip chmod on device files since this patch, so copy the modes
# from the host: https://github.com/RsyncProject/rsync/commit/808daef3e9a7
if [ "$OS_FAMILY" = linux ]; then
(cd /dev && sudo find . -xdev \( -type c -o -type b \) \
-exec chmod --reference=/dev/{} "${CHROOT_ROOT}dev/{}" \;)
fi

# Safeguard to terminate operation if we have somehow ended up outside the
# chroot, so we don't start running unsafe tests there.
sudo touch ${CHROOT_ROOT}inside-chroot.txt
Expand Down