allow installation of custom debs

This commit is contained in:
parazyd 2016-10-16 19:22:42 +02:00
parent 331398ff51
commit d28e0a93f4
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 22 additions and 0 deletions

View File

@ -138,6 +138,28 @@ EOF
dpkgdivert off $strapdir
}
install-custdebs() {
fn install-custdebs
req=(R strapdir)
ckreq || return 1
sudo mkdir -p $strapdir/debs
sudo cp $CPVERBOSE -f $R/extra/custom-packages/*.deb $strapdir/debs/
cat <<EOF | sudo tee ${strapdir}/install-debs
#!/bin/sh
for deb in /debs/*.deb; do
dpkg -i \$deb
apt-get --yes --force-yes -f install
done
apt-get autoremove
apt-get clean
rm -rf /debs install-debs
EOF
sudo chmod +x $strapdir/install-debs
sudo -E chroot $strapdir /install-debs
}
silly() {
fn silly "$@"
local arg1="$1"