mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
build: Make make_chroot and make_local_repo fail when run as root.
Still seeing some bugs get filed related to this. I went through all of the scripts, but let me know if I missed any. Review URL: http://codereview.chromium.org/432002 git-svn-id: svn://chrome-svn/chromeos/trunk@306 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
parent
4e7a92bd48
commit
5fc3fcf15e
@ -17,8 +17,9 @@
|
||||
# The path to common.sh should be relative to your script's location.
|
||||
. "$(dirname "$0")/common.sh"
|
||||
|
||||
# Script must be run outside the chroot
|
||||
# Script must be run outside the chroot and as a regular user.
|
||||
assert_outside_chroot
|
||||
assert_not_root_user
|
||||
|
||||
DEFAULT_PKGLIST="$SRC_ROOT/package_repo/package-list-dev.txt"
|
||||
|
||||
|
@ -8,8 +8,9 @@
|
||||
# The path to common.sh should be relative to your script's location.
|
||||
. "$(dirname "$0")/common.sh"
|
||||
|
||||
# Script must be run outside the chroot
|
||||
# Script must be run outside the chroot and as a regular user.
|
||||
assert_outside_chroot
|
||||
assert_not_root_user
|
||||
|
||||
DEFAULT_DEST="$GCLIENT_ROOT/repo"
|
||||
DEFAULT_DEV_PKGLIST="$SRC_ROOT/package_repo/repo_list_dev.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user