Add Ubuntu 20.04 Gnome Desktop build flavour

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I30c0139e8d70ea472fac2b0f035f66897178653b
This commit is contained in:
Dongjin Kim
2022-03-05 00:43:08 +09:00
parent 78e7dde05f
commit 60d20f79c8
6 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
allow_root_login() {
echo true
}
get_default_apt_options() {
echo "-y"
}

View File

@@ -0,0 +1,5 @@
ubuntu-gnome-desktop
openssh-server
neofetch
net-tools
netplan.io

BIN
face.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

22
fixups/S90-desktop Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
[ -f /etc/default/desktop ] || exit 0
. /etc/default/desktop
case ${SESSION} in
ubuntu-wayland)
if [ -f /tmp/face.png ]; then
echo "I: copy default display picture for GDM"
cp -a /tmp/face.png /home/@@DEFAULT_USER@@/.face
fi
cat>/var/lib/AccountsService/users/@@DEFAULT_USER@@<<__EOF
[User]
Session=${SESSION}
XSession=${SESSION}
Icon=/home/@@DEFAULT_USER@@/.face
SystemAccount=false
__EOF
chown root:root /var/lib/AccountsService/users/@@DEFAULT_USER@@
;;
esac

View File

@@ -0,0 +1 @@
SESSION=ubuntu-wayland

View File

@@ -365,6 +365,19 @@ do_preinstall() {
[ -d ${TOPDIR}/boards/${BOARD}/fixups ] \ [ -d ${TOPDIR}/boards/${BOARD}/fixups ] \
&& rsync -a ${TOPDIR}/boards/${BOARD}/fixups/* ${rootfs_mnt}/${fixups_dir} && rsync -a ${TOPDIR}/boards/${BOARD}/fixups/* ${rootfs_mnt}/${fixups_dir}
case ${FLAVOUR} in
*-desktop*)
faceimage=${TOPDIR}/face.png
if [ -f ${TOPDIR}/boards/${BOARD}/face.png ]; then
faceimage=${TOPDIR}/boards/${BOARD}/face.png
elif [ -f ${TOPDIR}/custom/${CUSTOMOS}/face.png ]; then
faceimage=${TOPDIR}/custom/${CUSTOMOS}/face.png
fi
cp -a ${faceimage} ${rootfs_mnt}/tmp
;;
esac
FIXUPS=`ls -A1 ${rootfs_mnt}${fixups_dir}/*` FIXUPS=`ls -A1 ${rootfs_mnt}${fixups_dir}/*`
for fixup in ${FIXUPS}; do for fixup in ${FIXUPS}; do
sed -i \ sed -i \
@@ -402,6 +415,7 @@ do_postinstall() {
if [ ! "x${QEMU_BINARY}" = "x" ]; then if [ ! "x${QEMU_BINARY}" = "x" ]; then
rm -f ${rootfs_mnt}/${QEMU_BINARY} rm -f ${rootfs_mnt}/${QEMU_BINARY}
fi fi
rm -f ${rootfs_mnt}/tmp/face.png
rm -rf ${rootfs_mnt}${fixups_dir} rm -rf ${rootfs_mnt}${fixups_dir}
rm -rf ${rootfs_mnt}/etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list rm -rf ${rootfs_mnt}/etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
} }