forked from doordeck/ubuntu-pi-flavour-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-settings-ubuntu-mate.sh
65 lines (55 loc) · 1.88 KB
/
build-settings-ubuntu-mate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
########################################################################
#
# Copyright (C) 2015 Martin Wimpress <[email protected]>
#
# This program 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 2
# 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.
########################################################################
FLAVOUR="ubuntu-mate"
FLAVOUR_NAME="Ubuntu MATE"
RELEASE="xenial"
VERSION="16.04.2"
QUALITY=""
# Either 'ext4' or 'f2fs'
FS_TYPE="ext4"
# Target image size, will be represented in GB
FS_SIZE=5
# Either 0 or 1.
# - 0 don't make generic rootfs tarball
# - 1 make a generic rootfs tarball
MAKE_TARBALL=1
TARBALL="${FLAVOUR}-${VERSION}${QUALITY}-desktop-armhf-rootfs.tar.bz2"
IMAGE="${FLAVOUR}-${VERSION}${QUALITY}-desktop-armhf-raspberry-pi.img"
BASEDIR=${HOME}/PiFlavourMaker/${RELEASE}
BUILDDIR=${BASEDIR}/${FLAVOUR}
BASE_R=${BASEDIR}/base
DESKTOP_R=${BUILDDIR}/desktop
DEVICE_R=${BUILDDIR}/pi
ARCH=$(uname -m)
export TZ=UTC
if [ "${FLAVOUR}" == "ubuntu-minimal" ] || [ "${FLAVOUR}" == "ubuntu-standard" ]; then
USERNAME="ubuntu"
OEM_CONFIG=0
else
USERNAME="${FLAVOUR}"
OEM_CONFIG=1
fi
# Override OEM_CONFIG here if required. Either 0 or 1.
# - 0 to hardcode a user.
# - 1 to use oem-config.
#OEM_CONFIG=1
if [ ${OEM_CONFIG} -eq 1 ]; then
USERNAME="oem"
fi