summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorQijiang YĆ«ki Ishii <fqj@chromium.org>2019-07-23 12:02:38 +0900
committerCommit Bot <commit-bot@chromium.org>2019-07-23 09:46:10 +0000
commit38f135e83e1d213fde64ac32bd366339f32f29fa (patch)
tree866388eeb713c236cec009bd0c7b7a01171f3362 /scripts
parent772908aef95bf21d139a06c45c674241da9af6ac (diff)
downloadvboot-38f135e83e1d213fde64ac32bd366339f32f29fa.tar.gz
set_lsb_release.sh: tell getfattr to use absolute names
Adding --absolute-names to getfattr to let getfattr not to remove the leading slash, and not to print the warning to stderr. BUG=chromium:954670 TEST=set_lsb_release.sh xx.bin a b TEST=`getfattr: Removing leading '/' from absolute path names` not printed BRANCH=none Change-Id: I6273151713612746443d5d68a8df530f1146a4a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1712890 Tested-by: Qijiang Fan <fqj@google.com> Reviewed-by: LaMont Jones <lamontjones@chromium.org> Commit-Queue: Qijiang Fan <fqj@google.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/image_signing/set_lsb_release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/image_signing/set_lsb_release.sh b/scripts/image_signing/set_lsb_release.sh
index f971b7b9..e847abb1 100755
--- a/scripts/image_signing/set_lsb_release.sh
+++ b/scripts/image_signing/set_lsb_release.sh
@@ -70,7 +70,7 @@ EOF
cat "${rootfs}/etc/lsb-release"
# Dump security context for lsb-release file
- getfattr -n security.selinux "${rootfs}/etc/lsb-release"
+ getfattr --absolute-names -n security.selinux "${rootfs}/etc/lsb-release"
}
main "$@"