Commit 378b63c0 authored by Alessandro Elias's avatar Alessandro Elias

Merge branch 'issue/310/apport' into 'develop'

SCRUM#310: Desabilita apport

See merge request !5
parents d394a96d 3c552e23
chroot
chroot-old
chroot-ultima.tar.gz
chroot.tar.bz2
*.swp
iso/**/*.iso
src/preseed/.preseed.bkp
initrd*
initrd
initrd.lz
chroot*.tar.gz
repo.c3sl.ufpr.br
packages-needed
......@@ -2,7 +2,7 @@ SHORTNAME=le6
TMP=/dev/shm/${_DIST}/
CHROOTDIR=/dev/shm/create-iso/
CHROOTFILE=${TMP}/todo.sh
DISTRO=Linux_Educacional_6
DISTRO=Linux_Educacional_6.0
DPLIST=${PREFIX}/pkg-list/${_DIST}/dependencies.list
INSTLIST=${PREFIX}/pkg-list/${_DIST}/install.list
ISOLINUX=${PREFIX}/src/isolinux/
......
le-all
linux-generic
plymouth-x11
plymouth-theme-le-logo
numlockx
#webbrowser-app
#xserver-xorg
......@@ -39,19 +39,20 @@ PREFIX=$PWD
source ${PREFIX}/common.sh
cp ${CHROOTDIR}/boot/vmlinuz-*-generic ${TMP}/image/casper/vmlinuz || exit 1
echo "CHROOTDIR = '${CHROOTDIR}'"
cp ${PREFIX}/vmlinuz-*-generic ${TMP}/image/casper/vmlinuz || exit 1
if [ ! -d ${PREFIX}/initrd ]; then
mkdir ${PREFIX}/initrd
else
rm -rf ${PREFIX}/initrd/*
fi
initname=$(ls "${CHROOTDIR}/boot/" | grep "initrd.*")
initname=$(ls "${PREFIX}/" | grep "initrd.*-generic")
if [ "$(ls "${CHROOTDIR}/boot/" | grep -c "initrd.*")" -gt "1" ]; then
initname="initrd"$(echo ${initname##*initrd})
fi
echo "initname = '${initname}'"
cd ${PREFIX}/initrd
gzip -dc ${CHROOTDIR}/boot/${initname} | cpio -id
gzip -dc ${PREFIX}/${initname} | cpio -id
cp ${PREFIX}/src/preseed/preseed.cfg ${PREFIX}/initrd/
broken_links=$(find . -type l ! -exec test -e {} \; -print)
for broken_link in ${broken_links}; do
......
......@@ -36,24 +36,34 @@ SHORTNAME=${13}
SOURCESLISTDEFAULT=${14}
TMP=${15}
PREFIX=$PWD
if test -z ${CHROOTDIR}; then
echo "Variavel CHROOTDIR vazia!!"
echo "CHROOTDIR=\"${CHROOTDIR}\""
exit 1
fi
mkdir -p ${TMP}/image/{casper,isolinux,install}
cp -r src/pool ${TMP}/image/ || exit 1
cp /usr/lib/ISOLINUX/isolinux.bin ${TMP}/image/isolinux/ || exit 1
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/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
touch ${TMP}image/ubuntu || exit 1
touch ${TMP}/image/ubuntu || exit 1
mkdir ${TMP}/image/.disk
touch ${TMP}/image/.disk/base_installable || exit 1
echo "full_cd/single" > ${TMP}/image/.disk/cd_type || exit 1
echo "Linux-Educacional 6.0" > ${TMP}/image/.disk/info || exit 1
echo "https://linuxeducacional.c3sl.ufpr.br" > ${TMP}/image/.disk/release_notes_url || exit 1
#Change label on grub menu
sed -i "s/GRUB_DISTRIBUTOR=.*/GRUB_DISTRIBUTOR=\"${DISTRO//_/ }\"/" ${CHROOTDIR}/etc/default/grub
sed -i "s/PRETTY_NAME=.*/PRETTY_NAME=\"${DISTRO//_/ }\"/" ${CHROOTDIR}/usr/lib/os-release
# Disable apport
sed -i 's/enabled=.*/enabled=0' ${CHROOTDIR}/etc/default/apport
# Setup CD repository
wget -xr -np -R "index.html*" --cut-dirs=1 http://repo.c3sl.ufpr.br/le6/dists/
......
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