summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLIU KUAN-FU <iamjeffliu@google.com>2022-11-11 06:08:42 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-29 08:18:15 +0000
commit758ccb9bc673f8a87fd53ed010008e44ef6ae38c (patch)
tree37ee085386b350c0c089ff919e5e3cee071191d5
parentce900920738131f7d05e426fa5826c1c2ba451b7 (diff)
downloadvboot-758ccb9bc673f8a87fd53ed010008e44ef6ae38c.tar.gz
make_dev_ssd.sh: Add logs of make_dev_ssd.sh
Sometimes we want to know if someone disable rootfs verification on DUT, but we have no evidence in logs. This CL modify make_dev_ssd.sh, for logging the operations and the parameters passed to the script in /var/log/messages when the device is changing itself. It can help us checking: 1. The operartions done by executing make_dev_sdd.sh 2. Whether someone disable rootfs verification. 3. The time when the rootfs verification was disabled. BUG=b:140709784 TEST=manual test on TOMATO DUT Change-Id: I8140e13b0e74a9b2a084954c5153e528045d7c7e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4022414 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380930 Auto-Submit: Phoebe Wang <phoebewang@chromium.org> Tested-by: Phoebe Wang <phoebewang@chromium.org> Commit-Queue: Cheng Yueh <cyueh@chromium.org> Reviewed-by: Cheng Yueh <cyueh@chromium.org>
-rwxr-xr-xscripts/image_signing/make_dev_ssd.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh
index 863e0a45..a2db3229 100755
--- a/scripts/image_signing/make_dev_ssd.sh
+++ b/scripts/image_signing/make_dev_ssd.sh
@@ -531,7 +531,12 @@ main() {
exit 1
# checks for running on a live system image.
- if [ "$FLAGS_image" = "$ROOTDEV_DISK" ]; then
+ if [ "${FLAGS_image}" = "${ROOTDEV_DISK}" ]; then
+ # Log the operartions and the parameters passed to the script
+ # when the device is changing itself
+ logger -p NOTICE "executing ${ORIGINAL_CMD}" \
+ "with the following parameters: ${ORIGINAL_PARAMS}"
+
debug_msg "check valid kernel partitions for live system"
local valid_partitions="$(find_valid_kernel_partitions $FLAGS_partitions)"
[ -n "$valid_partitions" ] ||