vserver: Give all vservers a shared /var/cache/apt/archives dir.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 15 Apr 2009 17:31:06 +0000 (19:31 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 15 Apr 2009 17:31:06 +0000 (19:31 +0200)
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.

etc/vservers/backup/fstab
etc/vservers/build/fstab
etc/vservers/dns/fstab
etc/vservers/ldap/fstab
etc/vservers/login/fstab
etc/vservers/mail/fstab
etc/vservers/mysql/fstab
etc/vservers/template/fstab
etc/vservers/www/fstab

index bb15244481026a6b72bb88bf74ef62734286bd6a..a260db96f6aa9bbee33b82d5fb32bc5f1490a2a3 100644 (file)
@@ -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
index 4a4840a51563464f10f3d14136ee94f38f011b57..650c8609f1e6d827586940b24713f0c9dff83dda 100644 (file)
@@ -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
index 3134cd1fc04921c1c348cc8953f649ba6e748738..6e2b5cd09460d1e3e26dfefb48316c94f2dd8209 100644 (file)
@@ -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
index f12dae9611c4781b03f4c54e192f9e5253ec3af1..c311de97f36740875e244b67b0f944604acbc1c2 100644 (file)
@@ -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
index 66e9ab621f7e6c4b9477c34aee687ce202f099a8..a521186496f93e8e27cdddd42178e18d9ddb5ca6 100644 (file)
@@ -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
index eec9f7f6848dd8a2444bea351d29af4c57052b21..ed6a62d058e66908b240e1b9bd3749353ea66a58 100644 (file)
@@ -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
index 93abc098b670d26de752ff82e4aed3a41b2ee188..320ab51df4bb33dff683aeb2102b5dc340677998 100644 (file)
@@ -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
index c1bccd4ece90984f04020560b2f7efeb3ecae368..88abb41b9d0d846a53d2ac40d77d2ec730474e28 100644 (file)
@@ -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
index 9b0a489a81d65e96efbcdaff84690179d5640292..f1b59def64bf67fe43d71601b1861fd9bfd91527 100644 (file)
@@ -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