commit | 2eed98d9763552563e2320f372dc7e790729518b | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@chromium.org> | Fri May 28 03:49:34 2021 -0400 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jun 04 21:31:16 2021 +0000 |
tree | df16939caed5f5a77a81c6038f20631da6cc8cfe | |
parent | 85e5e9dcf2dca0f3589161ad231b0d4053102c05 [diff] |
image_signing: set_lsb_release: simplify file rewriting Collapse the 4 sudo calls & temporary file into a single call. This is a bit easier to read and is faster as a result. We can also hoist the selinux restore to do it only once at the end if we modified the file. BUG=None TEST=set_lsb_release.sh on an image still works BRANCH=None Change-Id: I300cf47d017d159d762a62fe2aab789ce391f89a Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2923826 Reviewed-by: George Engelbrecht <engeg@google.com>