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

Unified Diff: chromeos-common.sh

Issue 3054041: Use max-size kernel partition on USB image, too. (Closed) Base URL: ssh://gitrw.chromium.org/installer.git
Patch Set: Created 10 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-common.sh
diff --git a/chromeos-common.sh b/chromeos-common.sh
index fef4c2170c35d940afd1b0857348f36a384d366e..74977cb642947de474b5c76f4609f545e68b1522 100644
--- a/chromeos-common.sh
+++ b/chromeos-common.sh
@@ -159,9 +159,6 @@ install_gpt() {
# Here are the size limits that we're currently requiring
local max_kern_sectors=32768 # 16M
- # Verified boot adds 64KB of .vblock at the beginning of
- # the kernel and ~20KB at the end. Add some padding to handle this.
- local num_vboot_sectors=512 # 256K
local max_rootfs_sectors=$((${rootfs_size} * 2 * 1024)) # 1G by default
local max_oem_sectors=32768 # 16M
local max_reserved_sectors=131072 # 64M
@@ -238,9 +235,7 @@ install_gpt() {
# because we won't be able to upgrade this image in-place as it's only for
# installation purposes.
NUM_STATEFUL_SECTORS=$(roundup $(numsectors $stateful_img))
- # Need to make room for kernel, key, preamble, added by key management.
- NUM_KERN_SECTORS=$(roundup \
- $(($num_vboot_sectors + $(numsectors $kernel_img))))
+ NUM_KERN_SECTORS=$max_kern_sectors
local num_kern_a_sectors=$NUM_KERN_SECTORS
local kern_a_priority=15
local num_kern_b_sectors=1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698