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

add kernel 4.13-38 and appending preseed instead of putting into initrd

parent 4417472a
SHORTNAME=le6
TMP=/home/ae/create-iso/tmp/${_DIST}/
CHROOTDIR=/home/ae/create-iso/overlay
TMP=/home/daniel/image/${_DIST}/
CHROOTDIR=/home/daniel/overlay
CHROOTFILE=${TMP}/todo.sh
DISTRO=Linux_Educacional_6.1.0
DPLIST=${PREFIX}/pkg-list/${_DIST}/dependencies.list
......
le-all
#linux-generic-hwe-16.04
#xserver-xorg-hwe-16.04
linux-generic-hwe-16.04
xserver-xorg-hwe-16.04
......@@ -41,39 +41,18 @@ source ${PREFIX}/common.sh
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/*
if ! test -f initrd.lz; then
initname=$(ls "${PREFIX}/" | grep "initrd.*-generic")
if [ ! -d ${PREFIX}/initrd ]; then
mkdir ${PREFIX}/initrd
else
rm -rf ${PREFIX}/initrd/*
fi
echo "initname = '${initname}'"
cd ${PREFIX}/initrd
gzip -dc ${PREFIX}/${initname} | cpio -i
find . | cpio --quiet -o -H newc | lzma -7 > ../initrd.lz
cd ..
fi
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 ${PREFIX}/${initname} | cpio -i
cp ${PREFIX}/src/preseed/preseed.cfg ${PREFIX}/initrd/
#broken_links=$(find . -type l ! -exec test -e {} \; -print)
#for broken_link in ${broken_links}; do
# path_file=$(readlink -m ${broken_link})
# # Expand path_file and remove prefix presents in broken_link variable
# # ex: path_file = /usr/share/plymouth/themes/le-text/le-text.plymouth
# # $(dirname broken_link) = ./usr/share/plymouth/themes/
# # so relative_path = le-text/le-text.plymouth
# # parameter expansion used "${PARAMETER#PATTERN}" remove substring from PARAMETER that matches with PATTHERN
# link_dir=$(dirname ${broken_link})
# link_name=$(basename ${broken_link})
# cd ${link_dir}
# relative_path=${path_file#*${link_dir#.}/}
# rm ${link_name}
# ln -s ${relative_path} ${link_name}
# cd -
#done
find . | cpio --quiet -o -H newc | lzma -7 > ../initrd.lz
cd ..
cp initrd.lz ${TMP}/image/casper/initrd.lz || exit 1
exit 0
......@@ -41,19 +41,17 @@ if test -z ${CHROOTDIR}; then
echo "CHROOTDIR=\"${CHROOTDIR}\""
exit 1
fi
mkdir -p ${TMP}/image/{casper,isolinux,install}
cp -r src/pool ${TMP}/image/ || exit 1
mkdir -p ${TMP}/image/{casper,isolinux,install,preseed}
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 src/isolinux.txt ${TMP}/image/isolinux/ || exit 1
cp src/isolinux/* ${TMP}/image/isolinux/ || exit 1
cp src/preseed/preseed.cfg ${TMP}/image/preseed/
cp src/keyboard ${CHROOTDIR}/etc/default/
set -x
printf $(sudo du -s --block-size=1 ${CHROOTDIR} | cut -f1) > ${TMP}image/casper/filesystem.size || exit 1
set +x
cp src/README.diskdefines ${TMP}/image/ || exit 1
set -x
#touch ${TMP}/image/ubuntu || exit 1
pushd ${TMP}/image/
ln -s . ubuntu
set +x
......
......@@ -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 upgrade"
addToChrootFile $CHROOTFILE "apt-get -y upgrade"
exit 0
Origin: C3SL
Label: C3SL Packages
Suite: testing
Codename: testing
Version: 0.1
Date: Tue, 09 May 2017 13:11:19 UTC
Architectures: i386 amd64
Components: main
Description: C3SL Debian Packages Repository
MD5Sum:
214ad93ba5790eefa526b60b4601487e 5370 main/binary-i386/Packages
66c5aaf6944e3e1f8e6bd2008b93d32d 2308 main/binary-i386/Packages.gz
851e98b47af50e74a7eada331750a5ef 144 main/binary-i386/Release
214ad93ba5790eefa526b60b4601487e 5370 main/binary-amd64/Packages
66c5aaf6944e3e1f8e6bd2008b93d32d 2308 main/binary-amd64/Packages.gz
457e87fed4cff634f0c7e39f9acf3acd 145 main/binary-amd64/Release
48bb48b938fbe1aa0ffde2c1798a5c76 7089 main/source/Sources
199b0b87cab9ac329d2f6439638ddd39 2473 main/source/Sources.gz
8bb8ac767f6b1d3ee1424191cf5980d3 146 main/source/Release
SHA1:
9a03ee13097f99613b88c2bd1abc8528dab6823c 5370 main/binary-i386/Packages
ffa3ff7e59451bf5878be43e57dcc1245481f6f1 2308 main/binary-i386/Packages.gz
7ceb8c03ea42e19bc887061c065b944fdfea44f3 144 main/binary-i386/Release
9a03ee13097f99613b88c2bd1abc8528dab6823c 5370 main/binary-amd64/Packages
ffa3ff7e59451bf5878be43e57dcc1245481f6f1 2308 main/binary-amd64/Packages.gz
eac5baf69f54e525de161802a9340ad114078733 145 main/binary-amd64/Release
8fda3daf191ddfe8219926427983449fb08cf27f 7089 main/source/Sources
1207d2155b74d09a7111714f138a3bc9f2abdf68 2473 main/source/Sources.gz
67f7159e483727902f4b7a088b94b438b8eef7bd 146 main/source/Release
SHA256:
2d0ec544f515421604b49b7d59f95408c965bcbe6514ad5730c923741c74aac1 5370 main/binary-i386/Packages
d4cd37b878be069c708c9d2166d02952b116b633fcf1a7affabb4dc597d0fb5f 2308 main/binary-i386/Packages.gz
7ba03fc4a5cc02536b82311918ba7319aee048afeda8d22864f89fe8ce2d922c 144 main/binary-i386/Release
2d0ec544f515421604b49b7d59f95408c965bcbe6514ad5730c923741c74aac1 5370 main/binary-amd64/Packages
d4cd37b878be069c708c9d2166d02952b116b633fcf1a7affabb4dc597d0fb5f 2308 main/binary-amd64/Packages.gz
ceb6901801dba72747d74e1a268084720d8038c04c110579df1f14c9f9d1964d 145 main/binary-amd64/Release
2aecb690a81860b261d61b90d1dddad18bbab30c69a776e61324bbb562d8a67b 7089 main/source/Sources
76f79dd0f7341b753cc9417705d480dda489e96cb4f2573ec8c1f1facd101a1f 2473 main/source/Sources.gz
3a134c27903356abb0f991b028c704cb7e14b8804455678252af531a33c7d4d6 146 main/source/Release
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAABCAAGBQJZEb/3AAoJEL4+t6jYOxdhhn0H/0EoKCC+jgcZLWmykCsYH0l6
XYvE3/F+A9BID8aIo2+QD2cDmETEj+9F5bXmr5Bwstx9CbeO0Y8uKvHsQ44FsR6l
a5CNQ0DNkZFG+QKmVaBuHvCidgdaIFMFkxpBxumJ6jJcbSLGFYqKH+vzcvYU8ySt
uUKiH+Nbh0+GNnWrixvr4vWrAoCBCe4baypg0VaDirxbabCJsX//r+59CjXdCI5f
mBezMrCiDKrfma3DxyXA8YR7tKksc63s13beRS6eHEE4KYe+O74/dMLQHtYqW+Pp
AJxBqwzVOcrq0SlQRSIqvQW4Jt7vUUtsR+enKkpDTlIjBrP/7lA1Bm2m1i8dqQU=
=Qwu3
-----END PGP SIGNATURE-----
Archive: testing
Version: 0.1
Component: main
Origin: C3SL
Label: C3SL Packages
Architecture: amd64
Description: C3SL Debian Packages Repository
Archive: testing
Version: 0.1
Component: main
Origin: C3SL
Label: C3SL Packages
Architecture: i386
Description: C3SL Debian Packages Repository
DEFAULT live
LABEL live
menu label ^Start or install Linux Educacional(Educational Linux)
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --
LABEL check
menu label ^Check CD for defects
kernel /casper/vmlinuz
append boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --
LABEL memtest
menu label ^Memory test
kernel /install/memtest
append -
LABEL hd
menu label ^Boot from first hard disk
localboot 0x80
append -
DISPLAY isolinux.txt
TIMEOUT 300
PROMPT 1
#prompt flag_val
#
# If flag_val is 0, display the "boot:" prompt
# only if the Shift or Alt key is pressed,
# or Caps Lock or Scroll lock is set (this is the default).
# If flag_val is 1, always display the "boot:" prompt.
# http://linux.die.net/man/1/syslinux syslinux manpage
splash.rle
************************************************************************
This is an Linux Educacional(Educational Linux) Live CD.
For the default live system, enter "live". To run memtest86+, enter "memtest"
************************************************************************
......@@ -2,11 +2,11 @@ default live
label live
menu label ^Try Linux Educacional without installing
kernel /casper/vmlinuz
append boot=casper initrd=/casper/initrd.lz quiet splash ---
append boot=casper file=/cdrom/preseed/preseed.cfg initrd=/casper/initrd.lz quiet splash ---
label live-install
menu label ^Install Linux Educacional
kernel /casper/vmlinuz
append boot=casper only-ubiquity initrd=/casper/initrd.lz quiet splash ---
append boot=casper file=/cdrom/preseed/preseed.cfg only-ubiquity initrd=/casper/initrd.lz quiet splash ---
label check
menu label ^Check disc for defects
kernel /casper/vmlinuz
......
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