Commit b2ede58a authored by Daniel Bissani Furlin's avatar Daniel Bissani Furlin

add packages needed in post inst ubiquity

parent 4d62bc13
......@@ -5,3 +5,6 @@ chroot-ultima.tar.gz
iso/**/*.iso
src/preseed/.preseed.bkp
initrd*
chroot*.tar.gz
repo.c3sl.ufpr.br
packages-needed
......@@ -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 testing install le-live-all"
addToChrootFile $CHROOTFILE "apt-get update && apt-get -q -y -t testing install $(cat ${INSTLIST} | grep -v '^#' | tr '\n' ' ')"
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' ' ')"
exit 0
......@@ -40,16 +40,10 @@ PREFIX=$PWD
source common.sh
# Get .debs needes to install lc-conf, lc-client-all and lc-server-all
mkdir -p ${PREFIX}/packages-needed/{lc-conf,lc-client-all,lc-server-all}
mkdir -p ${PREFIX}/packages-needed/le-conf
chroot ${CHROOTDIR} apt-get clean
chroot ${CHROOTDIR} apt-get --download-only -y install lc-conf
mv ${CHROOTDIR}/var/cache/apt/archives/*.deb ${PREFIX}/packages-needed/lc-conf
chroot ${CHROOTDIR} apt-get clean
chroot ${CHROOTDIR} apt-get --download-only -y install lc-client-all
mv ${CHROOTDIR}/var/cache/apt/archives/*.deb ${PREFIX}/packages-needed/lc-client-all
chroot ${CHROOTDIR} apt-get clean
chroot ${CHROOTDIR} apt-get --download-only -y install lc-server-all
mv ${CHROOTDIR}/var/cache/apt/archives/*.deb ${PREFIX}/packages-needed/lc-server-all
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 clean
cp -r packages-needed ${TMP}/image/
......
......@@ -44,7 +44,6 @@ cp /usr/lib/syslinux/modules/bios/ldlinux.c32 ${TMP}/image/isolinux/ || exit 1
cp /boot/memtest86+.bin ${TMP}/image/install/memtest || exit 1
cp src/isolinux.txt ${TMP}/image/isolinux/ || exit 1
cp src/isolinux/* ${TMP}/image/isolinux/ || exit 1
cp src/preseed_script.sh ${TMP}/image/
cp src/keyboard ${CHROOTDIR}/etc/default/
printf $(sudo du -sx --block-size=1 ${CHROOTDIR} | cut -f1) > ${TMP}image/casper/filesystem.size || exit 1
cp src/README.diskdefines ${TMP}/image/ || exit 1
......
../../../scripts-available/post-epilogue.sh
\ No newline at end of file
deb http://repo.c3sl.ufpr.br/le6/ testing main
deb-src http://repo.c3sl.ufpr.br/le6/ testing main
deb http://repo.c3sl.ufpr.br/le6/ stable main
deb-src http://repo.c3sl.ufpr.br/le6/ stable main
......@@ -3,9 +3,9 @@ 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/ -name "le-conf*.deb") && \
package=$(basename ${package_path}) && \
cp ${package_path} /target/ && \
in-target locale-gen pt_BR.UTF-8 && \
in-target dpkg -i ${package} && \
in-target rm ${package})
(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})
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