make_rootfs.sh: Support building ubuntu with KDE
Support option kde for building Ubuntu 18.04.2 image for A64-Teres with kde-plasma-desktop. This image uses the same repositories as bionic. Signed-off-by: Leon Anavi <leon@anavi.org>
This commit is contained in:
parent
6b903740d7
commit
33819e3d92
@ -77,7 +77,7 @@ case $DISTRO in
|
||||
xenial)
|
||||
ROOTFS="http://cdimage.ubuntu.com/ubuntu-base/releases/16.04.2/release/ubuntu-base-16.04.2-base-arm64.tar.gz"
|
||||
;;
|
||||
bionic)
|
||||
bionic|kde)
|
||||
ROOTFS="http://cdimage.ubuntu.com/ubuntu-base/releases/18.04.2/release/ubuntu-base-18.04-base-arm64.tar.gz"
|
||||
;;
|
||||
sid|jessie)
|
||||
@ -238,6 +238,10 @@ EOF
|
||||
|
||||
add_ubuntu_apt_sources() {
|
||||
local release="$1"
|
||||
# Use Ubuntu 18.04 bionic repositories for KDE image
|
||||
if [ "$release" = "kde" ]; then
|
||||
release="bionic"
|
||||
fi
|
||||
cat > "$DEST/etc/apt/sources.list" <<EOF
|
||||
deb http://ports.ubuntu.com/ ${release} main restricted universe multiverse
|
||||
deb-src http://ports.ubuntu.com/ ${release} main restricted universe multiverse
|
||||
@ -285,10 +289,10 @@ EOF
|
||||
rm -f "$DEST/etc/resolv.conf"
|
||||
mv "$DEST/etc/resolv.conf.dist" "$DEST/etc/resolv.conf"
|
||||
;;
|
||||
xenial|bionic|sid|jessie)
|
||||
xenial|bionic|sid|jessie|kde)
|
||||
rm "$DEST/etc/resolv.conf"
|
||||
cp /etc/resolv.conf "$DEST/etc/resolv.conf"
|
||||
if [ "$DISTRO" = "xenial" -o "$DISTRO" = "bionic" ]; then
|
||||
if [ "$DISTRO" = "xenial" -o "$DISTRO" = "bionic" -o "$DISTRO" = "kde" ]; then
|
||||
DEB=ubuntu
|
||||
DEBUSER=olimex
|
||||
DEBUSERPW=olimex
|
||||
@ -307,6 +311,10 @@ EOF
|
||||
rsync \
|
||||
blueman \
|
||||
"
|
||||
if [ "$DISTRO" = "kde" ]; then
|
||||
# Additional KDE packages
|
||||
EXTRADEBS+=" kde-plasma-desktop "
|
||||
fi
|
||||
elif [ "$DISTRO" = "sid" -o "$DISTRO" = "jessie" ]; then
|
||||
DEB=debian
|
||||
DEBUSER=olimex
|
||||
|
Loading…
Reference in New Issue
Block a user