Commit 2abcdafc by Mason Hock

reuse LOCAL_APT from ./config

parent dd3e404a
......@@ -23,32 +23,13 @@ NETINST=true
### get kernel version ###
LOCAL_APT=`mktemp -d`
mkdir -p ${LOCAL_APT}/var/lib/apt/partial
mkdir -p ${LOCAL_APT}/var/cache/apt/archives/partial
mkdir -p ${LOCAL_APT}/etc/
mkdir -p ${LOCAL_APT}/var/lib/dpkg
touch ${LOCAL_APT}/var/lib/dpkg/status
touch ${LOCAL_APT}/etc/trusted.gpg
[ $UID = 0 ] && id _apt > /dev/null 2>&1 && chown _apt ${LOCAL_APT} -R
cat << EOF > ${LOCAL_APT}/etc/apt.conf
Dir::State "${LOCAL_APT}/var/lib/apt";
Dir::State::status "${LOCAL_APT}/var/lib/dpkg/status";
Dir::Etc::SourceList "${LOCAL_APT}/etc/apt.sources.list";
Dir::Cache "${LOCAL_APT}/var/cache/apt";
pkgCacheGen::Essential "none";
Dir::Etc::Trusted "${LOCAL_APT}/etc/trusted.gpg";
Acquire::ForceIPv4 "true";
cat << EOF > $LOCAL_APT/etc/apt.sources.list
deb flidas main
deb flidas-updates main
deb flidas-security main
apt-key -c $LOCAL_APT/etc/apt.conf adv --keyserver --recv-keys B138CA450C05112F > /dev/null
apt-key --keyring ${LOCAL_APT}/etc/trusted.gpg adv --keyserver --recv-keys B138CA450C05112F
apt-get update -c $LOCAL_APT/etc/apt.conf
LASTKERNEL=$(apt-cache -c $LOCAL_APT/etc/apt.conf show linux-libc-dev|grep ^Version |head -n1|cut -d" " -f2|cut -d. -f1,2,3)
......@@ -97,4 +78,3 @@ rpl ubuntu-archive-keyring trisquel-archive-keyring . -R
changelog "Rebranded and adapted for Trisquel"
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