Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: build_kernel_image.sh

Issue 3936001: kernel cmdline: add dm_verity.dev_wait=1 (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: fix use of non-existent flag Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | create_legacy_bootloader_templates.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_kernel_image.sh
diff --git a/build_kernel_image.sh b/build_kernel_image.sh
index df40db9231ee11142e621b0fd7cacf08c75d25f9..ce94f1dcf32740a4c616ad2dca6e667d82bb2aec 100755
--- a/build_kernel_image.sh
+++ b/build_kernel_image.sh
@@ -101,10 +101,18 @@ if [[ -n "${FLAGS_rootfs_image}" && -n "${FLAGS_rootfs_hash}" ]]; then
fi
mkdir -p "${FLAGS_working_dir}"
+
+# Only let dm-verity block if rootfs verification is configured.
+dev_wait=0
+if [[ ${FLAGS_root} = "/dev/dm-0" ]]; then
+ dev_wait=1
+fi
+
cat <<EOF > "${FLAGS_working_dir}/boot.config"
root=${FLAGS_root}
dm_verity.error_behavior=${FLAGS_verity_error_behavior}
dm_verity.max_bios=${FLAGS_verity_max_ios}
+dm_verity.dev_wait=${dev_wait}
${verity_args}
${FLAGS_boot_args}
EOF
« no previous file with comments | « no previous file | create_legacy_bootloader_templates.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698