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

Unified Diff: src/platform/installer/chromeos-common.sh

Issue 2440005: RootFS size customization params added (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: added check for rootfs size and its partition Created 10 years, 7 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 | src/scripts/build_gpt.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/installer/chromeos-common.sh
diff --git a/src/platform/installer/chromeos-common.sh b/src/platform/installer/chromeos-common.sh
index 0e84f92a49c70a50f0034bc5b3992888b6c70636..ff757378a6f86fb1e315b3c45d4dac04a053c9d8 100644
--- a/src/platform/installer/chromeos-common.sh
+++ b/src/platform/installer/chromeos-common.sh
@@ -131,6 +131,7 @@ install_gpt() {
local esp_img=$6
local force_full="${7:-}"
local recovery="${8:-}"
+ local rootfs_size="${9:-1024}" # 1G
# The gpt tool requires a fixed-size target to work on, so we may have to
# create a file of the appropriate size. Let's figure out what that size is
@@ -170,7 +171,7 @@ install_gpt() {
# Here are the size limits that we're currently requiring
local max_kern_sectors=32768 # 16M
- local max_rootfs_sectors=2097152 # 1G
+ local max_rootfs_sectors=$((${rootfs_size} * 2 * 1024)) # 1G by default
local max_oem_sectors=32768 # 16M
local max_reserved_sectors=131072 # 64M
local max_esp_sectors=32768 # 16M
« no previous file with comments | « no previous file | src/scripts/build_gpt.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698