Commit 4123176b authored by Daniel Bissani Furlin's avatar Daniel Bissani Furlin

Add le-multiterminal to preseed

parent 3c552e23
le-all
linux-generic
#le-all
#linux-generic-hwe-16.04
#xserver-xorg-hwe-16.04
......@@ -41,7 +41,7 @@ source ${PREFIX}/common.sh
addToChrootFile $CHROOTFILE "env PATH='/fakebin:${PATH}'"
addToChrootFile $CHROOTFILE "export DEBIAN_FRONTEND=noninteractive"
addToChrootFile $CHROOTFILE "apt-get update && apt-get -q -y -t stable install le-live-all"
addToChrootFile $CHROOTFILE "apt-get update && apt-get -q -y -t stable install $(cat ${INSTLIST} | grep -v '^#' | tr '\n' ' ')"
#addToChrootFile $CHROOTFILE "apt-get update && apt-get -q -y -t testing install le-live-all"
#addToChrootFile $CHROOTFILE "apt-get update && apt-get -q -y -t testing install $(cat ${INSTLIST} | grep -v '^#' | tr '\n' ' ')"
exit 0
......@@ -40,10 +40,11 @@ PREFIX=$PWD
source common.sh
# Get .debs needes to install lc-conf, lc-client-all and lc-server-all
mkdir -p ${PREFIX}/packages-needed/le-conf
mkdir -p ${PREFIX}/packages-needed/
chroot ${CHROOTDIR} apt-get clean
chroot ${CHROOTDIR} apt-get --download-only -y install le-conf
mv ${CHROOTDIR}/var/cache/apt/archives/*.deb ${PREFIX}/packages-needed/le-conf
chroot ${CHROOTDIR} apt-get --download-only -y install le-multiterminal
mv ${CHROOTDIR}/var/cache/apt/archives/*.deb ${PREFIX}/packages-needed/
chroot ${CHROOTDIR} apt-get clean
cp -r packages-needed ${TMP}/image/
......
......@@ -47,6 +47,6 @@ cp ${OURSOURCESLIST} ${CHROOTDIR}/etc/apt/sources.list.d/
addToChrootFile $CHROOTFILE "wget -O- http://repo.c3sl.ufpr.br/le6/le.c3sl.ufpr.br.key | apt-key add -"
addToChrootFile $CHROOTFILE "apt-get update"
addToChrootFile $CHROOTFILE "apt-get -y dist-upgrade"
#addToChrootFile $CHROOTFILE "apt-get -y dist-upgrade"
exit 0
deb http://repo.c3sl.ufpr.br/le6/ stable main
deb-src http://repo.c3sl.ufpr.br/le6/ stable main
deb http://repo.c3sl.ufpr.br/le6/ testing main
deb-src http://repo.c3sl.ufpr.br/le6/ testing main
......@@ -2,10 +2,10 @@ ubiquity ubiquity/use_nonfree boolean true
d-i apt-setup/backports boolean false
ubiquity ubiquity/success_command \
string in-target apt-get -y autoremove; \
in-target apt-get -y install le-conf || \
(package_path=$(find /cdrom/ -type d -name "pool" -prune -o -type f -print | grep 'le-conf_.*.deb') && \
package_dir=$(dirname ${package_path}) && \
cp -r ${package_dir}/* /target/ && \
packages=$(ls ${package_dir}) && \
in-target dpkg -i ${packages} && \
in-target rm -rf ${packages})
(packages_dir=$(find /cdrom/ -type d -name "packages-needed") && \
cp ${packages_dir}/* /target/var/cache/apt/archives/ && \
in-target apt-get -y install le-conf; \
(if grep -qi "multiseat" /etc/default/multiseat; \
then in-target DEBIAN_FRONTEND=noninteractive \
apt-get install -q -y le-multiterminal; fi); \
in-target apt-get clean
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