From 824954a6d954a67634fe6d9bd2fb4017953967f2 Mon Sep 17 00:00:00 2001 From: Prajwal A N Date: Wed, 25 May 2016 12:25:55 +0900 Subject: [PATCH] ARM-CI: added a fix to mount Linux ARM emulator rootfs during each build * Previous PR dotnet/coreclr#4141 assumed that the rootfs is mounted throughout the lifespan of the CI machine * Changing this to mount and unmount everytime a build is triggered Signed-off-by: Prajwal A N Commit migrated from https://github.com/dotnet/coreclr/commit/148abd190e7630865c925f1273693a7f97a384e8 --- src/coreclr/netci.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/netci.groovy b/src/coreclr/netci.groovy index 00aeb32f24895..5440ff9d177ff 100755 --- a/src/coreclr/netci.groovy +++ b/src/coreclr/netci.groovy @@ -1710,6 +1710,8 @@ combinedScenarios.each { scenario -> break } else { + // Unmount previously mounted rootfs and mount the Linux ARM emulator rootfs at /opt/linux-arm-emulator-root/ + buildCommands += "sudo umount /opt/linux-arm-emulator-root/; sudo mount /opt/linux-arm-emulator/platform/rootfs-t30.ext4 /opt/linux-arm-emulator-root/" // Remove old copy of coreclr and copy the latest version of coreclr // This need to be done as it is not possible to clone the repository inside the chroot jail buildCommands += "sudo rm -rf /opt/linux-arm-emulator-root/home/coreclr; sudo mkdir /opt/linux-arm-emulator-root/home/coreclr; sudo cp -R ./ /opt/linux-arm-emulator-root/home/coreclr"