Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #175 from RodBarnes/main
Browse files Browse the repository at this point in the history
Alter to support build of 22.04 LTS
  • Loading branch information
MilkyDeveloper authored May 1, 2022
2 parents f90bea4 + 393ef4a commit bdb8bac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions bin/apl-sof-setup-audio
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -e

[[ -n "$1" ]] && { export DIR=$1; }

sudo add-apt-repository restricted
sudo apt install vboot-kernel-utils cgpt gzip -y
sudo apt install -y firmware-sof-signed || sudo apt-get -o Dpkg::Options::="--force-overwrite" install firmware-sof-signed

Expand Down
14 changes: 11 additions & 3 deletions utils/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,17 @@ fi
ubuntu)
# Split up the distro version
# Argument 3 / DISTRO_VERSION should be something like focal-20.04
[[ -n $DISTRO_VERSION ]] || { printerr "No Ubuntu version specified, using hirsute-21.04"; export DISTRO_VERSION=hirsute-21.04; }
export DISTRO_CODENAME=$(echo "$DISTRO_VERSION" | cut -d- -f1) # e.g. hirsute
export DISTRO_RELEASE=$(echo "$DISTRO_VERSION" | cut -d- -f2) # e.g. 21.04
if [[ -n $DISTRO_VERSION ]]; then
export DISTRO_CODENAME=$(echo "$DISTRO_VERSION" | cut -d- -f1) # e.g. hirsute
export DISTRO_RELEASE=$(echo "$DISTRO_VERSION" | cut -d- -f2) # e.g. 21.04
printq "Using ${DISTRO_CODENAME}-${DISTRO_RELEASE}"
else
# This assumes the build system is also Ubuntu
LATEST=$(tail -n 1 /usr/share/distro-info/ubuntu.csv)
export DISTRO_RELEASE=$(echo $LATEST | cut -d, -f1 | cut -d' ' -f1)
export DISTRO_CODENAME=$(echo $LATEST | cut -d, -f3)
printerr "No Ubuntu version specified, using ${DISTRO_CODENAME}-${DISTRO_RELEASE}"
fi

# Download the Ubuntu rootfs if it doesn't exist
DISTRO_ROOTFS="ubuntu-rootfs.tar.xz"
Expand Down
10 changes: 8 additions & 2 deletions utils/distros/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ EOT
gnome)
export DESKTOP_PACKAGE="apt install -y ubuntu-desktop"
;;

deepin)
export DESKTOP_PACKAGE="add-apt-repository ppa:ubuntudde-dev/stable; apt update; apt install -y ubuntudde-dde"
;;
Expand Down Expand Up @@ -115,7 +115,13 @@ EOT

# Fix for GDM3
# https://askubuntu.com/questions/1239503/ubuntu-20-04-and-20-10-etc-securetty-no-such-file-or-directory
sudo cp ${MNT}/usr/share/doc/util-linux/examples/securetty ${MNT}/etc/securetty
SURETTY=${MNT}/usr/share/doc/util-linux/examples/securetty
if [ -f "$SURETTY" ]; then
printq "Copying securetty"
sudo cp ${SURETTY} ${MNT}/etc/securetty
else
printq "Did not find securetty"
fi

# Only create a new user and add it to the sudo group if the user doesn't already exist
if runChrootCommand "id $BREATH_USER"; then
Expand Down

0 comments on commit bdb8bac

Please sign in to comment.