Commit 63fb89e3 authored by HQ's avatar HQ
Browse files

Various improvements

parent 2503639a
......@@ -287,12 +287,14 @@ if (!$rebuild && -e "$cwd/$dname.master.qcow2") { # Master image already exists,
# Install debs
if ($debs) {
print ">> Installing packages\n";
# Necessary for now to avoid corrupted apt caches
system(qq|perl -pi -e "s/(deb http.+ bionic-updates universe)/# \\\$1/" /etc/apt/sources.list|);
system(qq|perl -pi -e "s/(deb http.+ bionic-updates multiverse)/# \\\$1/" /etc/apt/sources.list|);
# print `rm -r /var/lib/apt/lists/*`; # Start from a clean slate
# print `chroot "/tmp/$dname" dpkg --clear-avail`;
# print `chroot "/tmp/$dname" sync-available` if (-e "/tmp/$dname/usr/sbin/sync-available");
print `rm -r /var/lib/apt/lists/*`; # Start from a clean slate
print `chroot "/tmp/$dname" dpkg --clear-avail`;
print `chroot "/tmp/$dname" sync-available` if (-e "/tmp/$dname/usr/sbin/sync-available");
# Necessary for now to avoid corrupted apt caches
print `chroot "/tmp/$dname" apt-get update`;
print `chroot "/tmp/$dname" /bin/bash -c 'DEBIAN_FRONTEND=noninteractive apt-get -q -y --show-progress install $debs'`;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment