From 7fce2d74c58d0601b3cf6067d7a254e570568ac2 Mon Sep 17 00:00:00 2001 From: adv Date: Thu, 1 Jun 2017 11:31:18 +0000 Subject: [PATCH] =?UTF-8?q?#769=20kernel=20soporta=20tama=C3=B1o=20del=20d?= =?UTF-8?q?irectorio=20para=20apt,=20permitiendo=20instalar=20software=20e?= =?UTF-8?q?n=20caliente.=20La=20variable=20es=20ogtmpfs=20El=20kernel=20ex?= =?UTF-8?q?porta=20el=20proxy=20para=20los=20protocolos=20https,=20ftp=20y?= =?UTF-8?q?=20ftps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@5331 a21b9725-9963-47de-94b9-378ad31fedc9 --- includes/etc/initramfs-tools/scripts/ogfunctions | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/etc/initramfs-tools/scripts/ogfunctions b/includes/etc/initramfs-tools/scripts/ogfunctions index 0204b5c..7ded49d 100644 --- a/includes/etc/initramfs-tools/scripts/ogfunctions +++ b/includes/etc/initramfs-tools/scripts/ogfunctions @@ -253,7 +253,12 @@ ogPostConfigureFS() fi #configuramos el uso del servicio http proxy (parĂ¡metro del Kernel "ogproxy=URL_Proxy") - [ -n "${ogproxy}" ] && export http_proxy="$ogproxy" + if [ -n "${ogproxy}" ]; then + export http_proxy="$ogproxy" + export https_proxy="$ogproxy" + export ftp_proxy="$ogproxy" + export ftps_proxy="$ogproxy" + fi # configuramos el /etc/networks #read -e NETIP NETDEFAULT <<<$(route -n | grep eth0 | awk -F" " '{print $1}') @@ -302,6 +307,11 @@ ogPostConfigureFS() fi fi fi + + #Montamos un directorio temporal para permitir instalacion de softare desde el comando apt-get (parametor kernel "ogtmpfs=50" valor en megas + ogtmpfs="${ogtmpfs:-15}" + mount tmpfs /var/cache/apt/archives -t tmpfs -o size=${ogtmpfs}M + mkdir -p /var/cache/apt/archives/partial }