update-sourceslist.sh 1.69 KB
Newer Older
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
1
#!/bin/bash
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# Copyright (C) 2017 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of create-iso
#
# le6-conf is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
22

23
#_DIST=$1
24
CHROOTDIR=$2
25
26
27
28
29
30
#CHROOTFILE=$3
#DISTRO=$4
#DPLIST=$5
#INSTLIST=$6
#ISOLINUX=$7
#MOUNTLIST=$8
31
OURSOURCESLIST=$9
32
33
34
35
#RMDSKT=${10}
#RMLIST=${11}
#SCRIPTSDIR=${12}
#SHORTNAME=${13}
36
SOURCESLISTDEFAULT=${14}
37
38
39
40
#TMP=${15}
#PREFIX=$PWD

set -x
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
41
42
43

source ${PREFIX}/common.sh

44
45
46
47
48
cp --archive ${SOURCESLISTDEFAULT} ${CHROOTDIR}/etc/apt/sources.list
cp --archive ${OURSOURCESLIST} ${CHROOTDIR}/etc/apt/sources.list.d/

addToChrootFile $CHROOTDIR "wget -O- http://repo.c3sl.ufpr.br/le6/le.c3sl.ufpr.br.key | apt-key add -"
addToChrootFile $CHROOTDIR "apt-get update"
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
49

Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
50
#TODO: CORRIGIR ERRO COM PACOTE UBIQUITY-FRONTEND-KDE UBIQUITY-UBUNTU-ARTWORK
51
52
53
#addToChrootFile $CHROOTDIR 'export DEBIAN_FRONTEND=noninteractive'
#addToChrootFile $CHROOTDIR "apt-get --quiet update"
#addToChrootFile $CHROOTDIR "apt-get --quiet --assume-yes dist-upgrade"
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
54
55

exit 0