diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-28 10:41:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-28 10:41:38 -0300 |
commit | 860580900d1e3fe7d2468ccb9b882f703280ce27 (patch) | |
tree | 297e80064bcd787ca87e0fadd4103563f47b39b3 | |
parent | 7494223156dad13042d9eb307e02aece4ffb3ad8 (diff) | |
download | kvmx-860580900d1e3fe7d2468ccb9b882f703280ce27.tar.gz kvmx-860580900d1e3fe7d2468ccb9b882f703280ce27.tar.bz2 |
Apt config at kvmx-create
-rwxr-xr-x | kvmx-create | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx-create b/kvmx-create index 36d3795..bafa79a 100755 --- a/kvmx-create +++ b/kvmx-create @@ -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 |