Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools/cross] Fix script option #14438

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions tools/cross/install_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ for i in "$@" ; do
esac
done

set -x
set -eo pipefail

__RootfsDir="$__CrossDir/rootfs/$__BuildArch"

Expand All @@ -91,7 +91,7 @@ fi

if [ -d "$__RootfsDir" ]; then
if [ $__SkipUnmount == 0 ]; then
umount $__RootfsDir/*
umount -q $__RootfsDir/* || true
ragmani marked this conversation as resolved.
Show resolved Hide resolved
fi
rm -rf $__RootfsDir
fi
Expand All @@ -111,7 +111,7 @@ if [[ -n $__LinuxCodeName ]]; then
chroot $__RootfsDir symlinks -cr /usr

if [ $__SkipUnmount == 0 ]; then
umount $__RootfsDir/*
umount -q $__RootfsDir/* || true
fi
else
echo "Unsupported target platform."
Expand Down