openbravo-isv team mailing list archive
-
openbravo-isv team
-
Mailing list archive
-
Message #00212
[Bug 1405501] Re: preinst script fails when /proc/sys/kernel/shmmax is too big
Been there, done that. Nope, it's not just taking it from the host, I've
changed the value, restarted docker, and still getting the same value.
The only way I can change it is by starting a privileged container,
however, I can't "docker build" as privileged so that doesn't solve the
problem either.
I have already tried and google for all the obvious and non-obvious
things to work around this.
The truth of the matter is that the script is actually broken for valid
values of shmmax. pre/post install/rm are delicate scripts that should
not be prone to errors due to unexpected/bogus/uncontrolled external
input.
It'll be safer to use python -c "print $SHMMAX < $SHMMAX_MIN" and
compare that to True or False, or something along those lines.
--
You received this bug notification because you are a member of Openbravo
ERP, which is subscribed to Openbravo ERP.
https://bugs.launchpad.net/bugs/1405501
Title:
preinst script fails when /proc/sys/kernel/shmmax is too big
Status in Openbravo ERP:
New
Bug description:
I am trying to install Openbravo in a Ubuntu Precise Docker container.
The value of /proc/sys/kernel/shmmax is 18446744073692774399 which
Dash/Bash fails to compare to the minimum SHMMAX value and makes the
preinst script abort the package installation.
This prevents the package from being installable as /proc is mounted
read-only
To manage notifications about this bug go to:
https://bugs.launchpad.net/openbravo-erp/+bug/1405501/+subscriptions
References