Commit 4af7cd63 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Lorenzo Martinico

[nayuos] Add chrome patch to increase storage quota in guest mode to support big offline apps

parent 86d8ae16
...@@ -99,7 +99,7 @@ context = ...@@ -99,7 +99,7 @@ context =
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = {{ software_dir }}/scripts/cros_full_build.in template = {{ software_dir }}/scripts/cros_full_build.in
rendered = ${directory:run}/cros_full_build rendered = ${directory:run}/cros_full_build
md5sum = f10eb8863b2575e117aae070be171d76 md5sum = 480b9f08ef25036422e64d11f9189674
mode = 0700 mode = 0700
context = context =
key bash_path bin:bash key bash_path bin:bash
...@@ -112,6 +112,7 @@ context = ...@@ -112,6 +112,7 @@ context =
key ebuilds_dir nayuos-ebuilds:location key ebuilds_dir nayuos-ebuilds:location
raw scripts_dir {{ software_dir }}/scripts raw scripts_dir {{ software_dir }}/scripts
raw logo_dir {{ software_dir }}/logo raw logo_dir {{ software_dir }}/logo
raw patch_dir {{ software_dir }}/patch
# packages to be copied from our overlay into ChromiuOS' overlay # packages to be copied from our overlay into ChromiuOS' overlay
# those packages will be marked as dependency of root filesystem # those packages will be marked as dependency of root filesystem
raw nayu_dev_rootfs_packages app-misc/nayuos-chromium-policy raw nayu_dev_rootfs_packages app-misc/nayuos-chromium-policy
......
--- a/src/storage/browser/quota/quota_settings.cc 2018-08-30 15:11:45.052446318 +0200
+++ b/src/storage/browser/quota/quota_settings.cc 2019-07-29 17:29:49.765826330 +0200
@@ -34,7 +34,7 @@
const int64_t kMBytes = 1024 * 1024;
const int kRandomizedPercentage = 10;
- if (is_incognito) {
+ /*if (is_incognito) {
// The incognito pool size is a fraction of the amount of system memory,
// and the amount is capped to a hard limit.
const double kIncognitoPoolSizeRatio = 0.1; // 10%
@@ -49,7 +49,7 @@
settings.session_only_per_host_quota = settings.per_host_quota;
settings.refresh_interval = base::TimeDelta::Max();
return settings;
- }
+ }*/
// The fraction of the device's storage the browser is willing to
// use for temporary storage.
...@@ -152,6 +152,10 @@ increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/openssh-server-init/ ...@@ -152,6 +152,10 @@ increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/openssh-server-init/
sed -i -n '/src_install/q;p' $(latest_ebuild ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init) sed -i -n '/src_install/q;p' $(latest_ebuild ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init)
increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init/ increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init/
# increase size of storage quota for chrome guest mode to make big offline apps work
CHROME_EBUILD_DIR="${CHROMIUM_OVERLAY}/chromeos-base/chromeos-chrome"
cp {{ patch_dir }}/0001-chrome-incognito-increase-storage-quota.patch "${CHROME_EBUILD_DIR}/files/"
sed -i 's|^PATCHES=()$|PATCHES=( "${FILESDIR}/0001-chrome-incognito-increase-storage-quota.patch" )|' ${CHROME_EBUILD_DIR}/chromeos-chrome*.ebuild
# bashrc modifications # bashrc modifications
BASH_EBUILD_DIR="${PORTAGE_STABLE}/app-shells/bash" BASH_EBUILD_DIR="${PORTAGE_STABLE}/app-shells/bash"
......
...@@ -26,7 +26,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -26,7 +26,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg rendered = ${buildout:directory}/instance.cfg
mode = 0644 mode = 0644
md5sum = 73f964d73367dbf280d904e408a7f9b8 md5sum = b95b3060e64cbb52c33ecff4d5ee6db8
context = context =
key software_dir :_profile_base_location_ key software_dir :_profile_base_location_
key instance_dir buildout:directory key instance_dir buildout:directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment