]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Apt config at kvmx-create
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Jun 2017 13:41:38 +0000 (10:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Jun 2017 13:41:38 +0000 (10:41 -0300)
kvmx-create

index 36d3795f9516d8948c1f1bf79cc4eb1cdd308c09..bafa79a715e49525e0d54da291b1a2df0cc0f803 100755 (executable)
@@ -229,6 +229,12 @@ function kvmx_create_custom {
   # Fstab
   echo "/dev/vda2 / ext4 errors=remount-ro 0 1" | $SUDO tee $WORK/etc/fstab > /dev/null
 
+  # Apt
+  if [ "$version" != "sid" ]; then
+    echo "deb http://security.debian.org/ $version/updates main contrib non-free"     | $SUDO tee $WORK/etc/apt/sources.list
+    echo "deb-src http://security.debian.org/ $version/updates main contrib non-free" | $SUDO tee $WORK/etc/apt/sources.list
+  fi
+
   # Mount auxiliary filesystems needed by the bootloader
   kvmx_sudo_run mount none -t proc  $WORK/proc
   kvmx_sudo_run mount none -t sysfs $WORK/sys