mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add next Ubuntu 23.04 / Lunar lobster (#4625)
This commit is contained in:
1
config/cli/lunar
Symbolic link
1
config/cli/lunar
Symbolic link
@@ -0,0 +1 @@
|
||||
kinetic
|
||||
1
config/desktop/lunar
Symbolic link
1
config/desktop/lunar
Symbolic link
@@ -0,0 +1 @@
|
||||
kinetic
|
||||
1
config/distributions/lunar/name
Normal file
1
config/distributions/lunar/name
Normal file
@@ -0,0 +1 @@
|
||||
Ubuntu lunar 23.04
|
||||
1
config/distributions/lunar/support
Normal file
1
config/distributions/lunar/support
Normal file
@@ -0,0 +1 @@
|
||||
csc
|
||||
@@ -36,7 +36,7 @@ fi
|
||||
|
||||
if [ "$(uname -m)" = "aarch64" ]; then
|
||||
case "$(lsb_release -sc)" in
|
||||
"bullseye" | "focal" | "hirsute" | "impish" | "jammy")
|
||||
"bullseye" | "focal" | "hirsute" | "impish" | "jammy" | "lunar")
|
||||
PKG_PREFIX="qemu-x86_64-static -L /usr/x86_64-linux-gnu "
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -68,7 +68,7 @@ extension_prepare_config__prepare_rpi_flash_kernel() {
|
||||
display_alert "Preparing bcm2711" "${RELEASE}, distro kernel?: ${RASPI_DISTRO_KERNEL}" "info"
|
||||
export RASPI_DISTRO_KERNEL="${RASPI_DISTRO_KERNEL:-no}" # Include a distro-built kernel?
|
||||
export SERIALCON="${RASPI_SERIALCON:-tty1}" # HDMI etc, not serial. most people don't have UART on rpi
|
||||
local usable_releases="jammy|kinetic"
|
||||
local usable_releases="jammy|kinetic|lunar"
|
||||
|
||||
if [[ "$RELEASE" =~ ^(${usable_releases})$ ]]; then
|
||||
export FK__EXTRA_PACKAGES="rpi-eeprom linux-firmware linux-firmware-raspi libraspberrypi-bin cloud-initramfs-growroot"
|
||||
|
||||
@@ -99,7 +99,7 @@ function handle_docker() {
|
||||
codename=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d"=" -f2)
|
||||
codeid=$(cat /etc/os-release | grep ^NAME | cut -d"=" -f2 | awk '{print tolower($0)}' | tr -d '"' | awk '{print $1}')
|
||||
[[ "${codename}" == "debbie" ]] && codename="buster" && codeid="debian"
|
||||
[[ "${codename}" == "ulyana" || "${codename}" == "jammy" || "${codename}" == "kinetic" ]] && codename="focal" && codeid="ubuntu"
|
||||
[[ "${codename}" == "ulyana" || "${codename}" == "jammy" || "${codename}" == "kinetic" || "${codename}" == "lunar" ]] && codename="focal" && codeid="ubuntu"
|
||||
|
||||
# different binaries for some. TBD. Need to check for all others
|
||||
[[ "${codename}" =~ focal|hirsute ]] && DOCKER_BINARY="docker containerd docker.io"
|
||||
|
||||
@@ -221,7 +221,7 @@ POST_FAMILY_CONFIG
|
||||
[[ -z $ATFPATCHDIR ]] && ATFPATCHDIR="atf-$LINUXFAMILY"
|
||||
[[ -z $KERNELPATCHDIR ]] && KERNELPATCHDIR="$LINUXFAMILY-$BRANCH"
|
||||
|
||||
if [[ "$RELEASE" =~ ^(focal|jammy|kinetic)$ ]]; then
|
||||
if [[ "$RELEASE" =~ ^(focal|jammy|kinetic|lunar)$ ]]; then
|
||||
DISTRIBUTION="Ubuntu"
|
||||
else
|
||||
DISTRIBUTION="Debian"
|
||||
|
||||
@@ -13,18 +13,20 @@ create_chroot() {
|
||||
apt_mirror['focal']="$UBUNTU_MIRROR"
|
||||
apt_mirror['jammy']="$UBUNTU_MIRROR"
|
||||
apt_mirror['kinetic']="$UBUNTU_MIRROR"
|
||||
apt_mirror['lunar']="$UBUNTU_MIRROR"
|
||||
components['buster']='main,contrib'
|
||||
components['bullseye']='main,contrib'
|
||||
components['sid']='main,contrib'
|
||||
components['focal']='main,universe,multiverse'
|
||||
components['jammy']='main,universe,multiverse'
|
||||
components['lunar']='main,universe,multiverse'
|
||||
components['kinetic']='main,universe,multiverse'
|
||||
display_alert "Creating build chroot" "$release/$arch" "info"
|
||||
local includes="ccache,locales,git,ca-certificates,libfile-fcntllock-perl,rsync,python3,distcc,apt-utils"
|
||||
|
||||
# perhaps a temporally workaround
|
||||
case $release in
|
||||
bullseye | focal | jammy | sid | kinetic)
|
||||
bullseye | focal | jammy | sid | kinetic | lunar)
|
||||
includes=${includes}",perl-openssl-defaults,libnet-ssleay-perl"
|
||||
;;
|
||||
esac
|
||||
@@ -120,6 +122,7 @@ chroot_prepare_distccd() {
|
||||
gcc_version['sid']='10.2'
|
||||
gcc_version['jammy']='12'
|
||||
gcc_version['kinetic']='12'
|
||||
gcc_version['lunar']='12'
|
||||
gcc_type['armhf']='arm-linux-gnueabihf-'
|
||||
gcc_type['arm64']='aarch64-linux-gnu-'
|
||||
rm -f "${dest}"/cmdlist
|
||||
@@ -153,7 +156,7 @@ chroot_build_packages() {
|
||||
target_arch="${ARCH}"
|
||||
else
|
||||
# only make packages for recent releases. There are no changes on older
|
||||
target_release="bullseye focal jammy sid"
|
||||
target_release="bullseye focal jammy lunar sid"
|
||||
target_arch="armhf arm64 amd64"
|
||||
fi
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ prepare_host() {
|
||||
fi
|
||||
|
||||
# Add support for Ubuntu 20.04, 21.04 and Mint 20.x
|
||||
if [[ $HOSTRELEASE =~ ^(focal|impish|hirsute|jammy|kinetic|ulyana|ulyssa|vanessa|bullseye|uma|una)$ ]]; then
|
||||
if [[ $HOSTRELEASE =~ ^(focal|impish|hirsute|jammy|kinetic|lunar|ulyana|ulyssa|vanessa|bullseye|uma|una)$ ]]; then
|
||||
hostdeps+=" python2 python3"
|
||||
ln -fs /usr/bin/python2.7 /usr/bin/python2
|
||||
ln -fs /usr/bin/python2.7 /usr/bin/python
|
||||
@@ -83,7 +83,7 @@ prepare_host() {
|
||||
#
|
||||
# NO_HOST_RELEASE_CHECK overrides the check for a supported host system
|
||||
# Disable host OS check at your own risk. Any issues reported with unsupported releases will be closed without discussion
|
||||
if [[ -z $HOSTRELEASE || "buster bullseye focal impish hirsute jammy kinetic debbie tricia ulyana ulyssa vanessa uma una" != *"$HOSTRELEASE"* ]]; then
|
||||
if [[ -z $HOSTRELEASE || "buster bullseye focal impish hirsute jammy lunar kinetic debbie tricia ulyana ulyssa vanessa uma una" != *"$HOSTRELEASE"* ]]; then
|
||||
if [[ $NO_HOST_RELEASE_CHECK == yes ]]; then
|
||||
display_alert "You are running on an unsupported system" "${HOSTRELEASE:-(unknown)}" "wrn"
|
||||
display_alert "Do not report any errors, warnings or other issues encountered beyond this point" "" "wrn"
|
||||
|
||||
@@ -28,7 +28,7 @@ prepare_partitions() {
|
||||
# parttype[nfs] is empty
|
||||
|
||||
# metadata_csum and 64bit may need to be disabled explicitly when migrating to newer supported host OS releases
|
||||
if [[ $HOSTRELEASE =~ buster|bullseye|focal|jammy|kinetic|sid ]]; then
|
||||
if [[ $HOSTRELEASE =~ buster|bullseye|focal|jammy|kinetic|lunar|sid ]]; then
|
||||
mkopts[ext4]="-q -m 2 -O ^64bit,^metadata_csum"
|
||||
fi
|
||||
# mkopts[fat] is empty
|
||||
|
||||
@@ -13,7 +13,7 @@ install_distribution_specific() {
|
||||
|
||||
case $RELEASE in
|
||||
|
||||
focal | jammy | kinetic )
|
||||
focal | jammy | kinetic | lunar )
|
||||
|
||||
# by using default lz4 initrd compression leads to corruption, go back to proven method
|
||||
sed -i "s/^COMPRESS=.*/COMPRESS=gzip/" "${SDCARD}"/etc/initramfs-tools/initramfs.conf
|
||||
@@ -88,7 +88,7 @@ install_distribution_specific() {
|
||||
|
||||
# create_sources_list <release> <basedir>
|
||||
#
|
||||
# <release>: bullseye|focal|jammy|kinetic|sid
|
||||
# <release>: bullseye|focal|jammy|kinetic|lunar|sid
|
||||
# <basedir>: path to root directory
|
||||
#
|
||||
create_sources_list() {
|
||||
@@ -136,7 +136,7 @@ create_sources_list() {
|
||||
EOF
|
||||
;;
|
||||
|
||||
focal | jammy | kinetic)
|
||||
focal | jammy | kinetic | lunar)
|
||||
cat <<- EOF > "${basedir}"/etc/apt/sources.list
|
||||
deb http://${UBUNTU_MIRROR} $release main restricted universe multiverse
|
||||
#deb-src http://${UBUNTU_MIRROR} $release main restricted universe multiverse
|
||||
|
||||
@@ -40,7 +40,7 @@ publishing() {
|
||||
IFS=', ' read -r -a DISTROS <<< "$5"
|
||||
local errors=0
|
||||
# publish all, update selected
|
||||
local distributions=("jessy" "xenial" "stretch" "bionic" "buster" "bullseye" "focal" "hirsute" "impish" "jammy" "kinetic" "sid")
|
||||
local distributions=("jessy" "xenial" "stretch" "bionic" "buster" "bullseye" "focal" "hirsute" "impish" "jammy" "lunar" "kinetic" "sid")
|
||||
for release in "${distributions[@]}"; do
|
||||
local forceoverwrite=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user