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>2022-12-07 13:43:40 +0000
commit23f65a290112a0fd14efb760394c99196994d974 (patch)
tree37ee085386b350c0c089ff919e5e3cee071191d5
parentf9ae6c12bd0b67ee336089ce15d5255d7d6d11b7 (diff)
downloadvboot-23f65a290112a0fd14efb760394c99196994d974.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-by: Julius Werner <jwerner@chromium.org> Tested-by: LIU KUAN-FU <iamjeffliu@google.com> Commit-Queue: LIU KUAN-FU <iamjeffliu@google.com>
-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" ] ||