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

Add le-multiterminal to preseed

parent 3c552e23
......@@ -41,7 +41,7 @@ source ${PREFIX}/
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
# 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- | 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 stable main
deb-src stable main
deb testing main
deb-src 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