Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: src/platform/installer/chromeos-install

Issue 2090006: Use new grub2 variables to boot from the device with the bootloader (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: respond to feedback Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/installer/chromeos-common.sh ('k') | src/platform/installer/chromeos-setimage » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/installer/chromeos-install
diff --git a/src/platform/installer/chromeos-install b/src/platform/installer/chromeos-install
index 5ddc77f86b913dc76367e4e1c1c1db45d10a3813..cae8926654cc35c8dcd457a7b8809dd1acd2d59f 100755
--- a/src/platform/installer/chromeos-install
+++ b/src/platform/installer/chromeos-install
@@ -31,16 +31,8 @@ eval set -- "${FLAGS_ARGV}"
set -e
-# Unless you pass --run_as_root, you can't be root when you start this,
-# because we want to force you to give the root password as confirmation
-# that you're allowed to do it. We don't care what other account you're using;
-# you'll still need to sudo before this works.
-if [ $(id -u) -eq "0" -a "${FLAGS_run_as_root}" -eq "${FLAGS_FALSE}" ]
-then
- echo "Note: You must be the 'chronos' user to run this script. Unless"
- echo "you pass --run_as_root and run as root."
- exit 1
-fi
+# Don't run this as root
+dont_run_as_root
# First find the root partition that we are installing from and verify it.
ROOTDEV=$(rootdev)
« no previous file with comments | « src/platform/installer/chromeos-common.sh ('k') | src/platform/installer/chromeos-setimage » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698