Skip to content

Commit

Permalink
ARM-CI: fixing umount bug
Browse files Browse the repository at this point in the history
* Previous PR dotnet/coreclr#5209 did not check if rootfs is mounted before unmounting
* Build fails due to failed command
* Fixing this by unmounting only if rootfs is already mounted

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>


Commit migrated from dotnet/coreclr@c971a45
  • Loading branch information
Prajwal A N committed May 26, 2016
1 parent 824954a commit a80ae84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/netci.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ combinedScenarios.each { scenario ->
}
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/"
buildCommands += "if grep -qs '/opt/linux-arm-emulator-root' /proc/mounts; then sudo umount /opt/linux-arm-emulator-root; fi ; 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"
Expand Down

0 comments on commit a80ae84

Please sign in to comment.