commit | 9a8bc896a115c956ea7bb299ce66983f7e3ac7ef | [log] [tgz] |
---|---|---|
author | Drew Fisher <zarvox@google.com> | Sat May 18 00:55:43 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat May 18 00:55:43 2019 +0000 |
tree | 533561d8d45fb1d58f12cb9964bbf766ee46ef37 | |
parent | aaf359ec0f62f1ff68daf296c6b93a94520bde03 [diff] |
[mkzedboot] Only chown block device if not writeable When testing paver changes on x64, it's convenient to set up a udev rule to make your USB key be owned by your user, so you don't have to type your sudo password to chown the block device for every iteration cycle. But then the mkzedboot script runs sudo chown unconditionally anyway. It doesn't have to -- we could check whether we already have write permissions to the block device before doing the `sudo chown` call. Tested by running `fx mkzedboot /dev/sda` twice: once with /dev/sda owned by my user, where the sudo chown was not needed, and once with /dev/sda owned by root, where the sudo chown was needed and ran as expected. Change-Id: I07d090dd51465cfea7518dcde3f98c726bdb915e
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.