From: Matthijs Kooijman Date: Wed, 15 Apr 2009 17:31:06 +0000 (+0200) Subject: vserver: Give all vservers a shared /var/cache/apt/archives dir. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=574ea24b153f282515df8299c59d81bebe079aed;hp=8de46621eeaf4d21fd3a7b928ed43ca5b0b3cd76;p=matthijs%2Fservers%2Fdrsnuggles.git vserver: Give all vservers a shared /var/cache/apt/archives dir. Each vserver has write access to this dir, so any packages downloaded can be shared by all. This saves download bandwidth, but more importantly it saves storage size (upgrading all vservers at the same time easily eats up gigabytes of space). Since each vservers still has its own Release and Contents files and checks gnupg signatures and hashes before installing the .debs, there should not be a security issue. --- diff --git a/etc/vservers/backup/fstab b/etc/vservers/backup/fstab index bb15244..a260db9 100644 --- a/etc/vservers/backup/fstab +++ b/etc/vservers/backup/fstab @@ -3,3 +3,4 @@ none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data /data none bind,ro 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/build/fstab b/etc/vservers/build/fstab index 4a4840a..650c860 100644 --- a/etc/vservers/build/fstab +++ b/etc/vservers/build/fstab @@ -3,3 +3,4 @@ none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/apt-repository /data/apt-repository none bind 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/dns/fstab b/etc/vservers/dns/fstab index 3134cd1..6e2b5cd 100644 --- a/etc/vservers/dns/fstab +++ b/etc/vservers/dns/fstab @@ -4,3 +4,4 @@ none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 /data/db/dns /data/db/dns none bind 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/ldap/fstab b/etc/vservers/ldap/fstab index f12dae9..c311de9 100644 --- a/etc/vservers/ldap/fstab +++ b/etc/vservers/ldap/fstab @@ -4,3 +4,4 @@ none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/db/ldap /data/db/ldap none bind 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/login/fstab b/etc/vservers/login/fstab index 66e9ab6..a521186 100644 --- a/etc/vservers/login/fstab +++ b/etc/vservers/login/fstab @@ -6,3 +6,4 @@ none /dev/pts devpts gid=5,mode=620 0 0 /data/www /data/www none bind 0 0 /data/vcs /data/vcs none bind 0 0 /data/other /data/other none bind 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/mail/fstab b/etc/vservers/mail/fstab index eec9f7f..ed6a62d 100644 --- a/etc/vservers/mail/fstab +++ b/etc/vservers/mail/fstab @@ -3,3 +3,4 @@ none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/mysql/fstab b/etc/vservers/mysql/fstab index 93abc09..320ab51 100644 --- a/etc/vservers/mysql/fstab +++ b/etc/vservers/mysql/fstab @@ -4,3 +4,4 @@ none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 /data/db/mysql /data/db/mysql none bind 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/template/fstab b/etc/vservers/template/fstab index c1bccd4..88abb41 100644 --- a/etc/vservers/template/fstab +++ b/etc/vservers/template/fstab @@ -3,3 +3,4 @@ none /tmp tmpfs size=16m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /home /home none bind 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0 diff --git a/etc/vservers/www/fstab b/etc/vservers/www/fstab index 9b0a489..f1b59de 100644 --- a/etc/vservers/www/fstab +++ b/etc/vservers/www/fstab @@ -5,3 +5,4 @@ none /dev/pts devpts gid=5,mode=620 0 0 /data/apt-repository/public /data/apt-repository/public none bind,ro 0 0 /data/www /data/www none bind 0 0 /data/vcs /data/vcs none bind 0 0 +/data/other/apt-archives /var/cache/apt/archives none bind,rw 0 0