update the sources list if needed when unpacking the tarball

This commit is contained in:
parazyd 2017-04-23 16:58:54 +02:00
parent 520a27422d
commit e244de8be4
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ bootstrap_tar_unpack() {
sudo mkdir -p ${unpath}/{boot,dev,sys,proc} sudo mkdir -p ${unpath}/{boot,dev,sys,proc}
fi fi
conf_print_sourceslist | sudo tee $strapdir/etc/apt/sources.list >/dev/null
cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null
#!/bin/sh #!/bin/sh
apt-get update apt-get update