Commit 8fe92ec0 authored by Elena Grandi's avatar Elena Grandi
Browse files

Fix customisation of live-wrapper

parent 7dfb61cc
......@@ -22,34 +22,27 @@ Setup
# apt install live-wrapper
* Copiare il file ``/usr/share/vmdebootstrap/common/customise.lib`` per
modificarlo::
# cp /usr/share/vmdebootstrap/common/customise.lib fuss-customise.lib
e cambiare la funzione ``prepare_apt_source`` come segue::
# ensure you pass the replacement mirror and suite
prepare_apt_source() {
# handle the apt source
mv ${rootdir}/etc/apt/sources.list.d/base.list ${rootdir}/etc/apt/
echo "deb $1 $2 main contrib non-free" > ${rootdir}/etc/apt/sources.list
echo "deb-src $1 $2 main contrib non-free" >> ${rootdir}/etc/apt/sources.list
echo "deb http://archive.fuss.bz.it/ stretch main" >> ${rootdir}/etc/apt/sources.list
wget -qO ${rootdir}/tmp/fuss-apt.key https://archive.fuss.bz.it/apt.key
chroot ${rootdir} apt-key add /tmp/fuss-apt.key
chroot ${rootdir} apt -qq -y update > /dev/null 2>&1
}
* Copiare il file ``/usr/share/live-wrapper/customise.sh``::
# cp /usr/share/live-wrapper/customise.sh fuss-customise.sh
e modificare l'indirizzo della libreria personalizzata sopra::
sotto alla riga::
. /usr/share/vmdebootstrap/common/customise.lib
# common needs rootdir to already be defined.
. /<path/to>/customise.lib
aggiungere::
# overriden from the above for FUSS
prepare_apt_source() {
# handle the apt source
mv ${rootdir}/etc/apt/sources.list.d/base.list ${rootdir}/etc/apt/
echo "deb $1 $2 main contrib non-free" > ${rootdir}/etc/apt/sources.list
echo "deb-src $1 $2 main contrib non-free" >> ${rootdir}/etc/apt/sources.list
echo "deb http://archive.fuss.bz.it/ stretch main" >> ${rootdir}/etc/apt/sources.list
wget -qO ${rootdir}/tmp/fuss-apt.key https://archive.fuss.bz.it/apt.key
chroot ${rootdir} apt-key add /tmp/fuss-apt.key
chroot ${rootdir} apt -qq -y update > /dev/null 2>&1
}
Build
-----
......
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