From 17ec4dff01fc41b85994658e7ad498042cc010f8 Mon Sep 17 00:00:00 2001 From: Sylirre Date: Thu, 9 Jan 2025 20:22:01 +0200 Subject: [PATCH] build: remove ubuntu-oldlts.sh --- distro-build/ubuntu-oldlts.sh | 47 ----------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 distro-build/ubuntu-oldlts.sh diff --git a/distro-build/ubuntu-oldlts.sh b/distro-build/ubuntu-oldlts.sh deleted file mode 100644 index e5668c47e..000000000 --- a/distro-build/ubuntu-oldlts.sh +++ /dev/null @@ -1,47 +0,0 @@ -dist_name="Ubuntu" - -# Must contain current previous LTS version. -# After changing, update the DISTRO_NAME below. -dist_version="jammy" - -bootstrap_distribution() { - sudo rm -f "${ROOTFS_DIR}"/ubuntu-"${dist_version}"-*.tar.xz - - for arch in arm64 armhf amd64; do - sudo rm -rf "${WORKDIR}/ubuntu-${dist_version}-$(translate_arch "$arch")" - sudo mmdebstrap \ - --architectures=${arch} \ - --variant=apt \ - --components="main,universe,multiverse" \ - --include="locales,passwd" \ - --format=directory \ - "${dist_version}" \ - "${WORKDIR}/ubuntu-${dist_version}-$(translate_arch "$arch")" - archive_rootfs "${ROOTFS_DIR}/ubuntu-${dist_version}-$(translate_arch "$arch")-pd-${CURRENT_VERSION}.tar.xz" \ - "ubuntu-${dist_version}-$(translate_arch "$arch")" - done - unset arch -} - -write_plugin() { - cat <<- EOF > "${PLUGIN_DIR}/ubuntu-oldlts.sh" - # This is a default distribution plug-in. - # Do not modify this file as your changes will be overwritten on next update. - # If you want customize installation, please make a copy. - DISTRO_NAME="Ubuntu (22.04)" - DISTRO_COMMENT="Previous LTS release (${dist_version})." - - TARBALL_URL['aarch64']="${GIT_RELEASE_URL}/ubuntu-${dist_version}-aarch64-pd-${CURRENT_VERSION}.tar.xz" - TARBALL_SHA256['aarch64']="$(sha256sum "${ROOTFS_DIR}/ubuntu-${dist_version}-aarch64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')" - TARBALL_URL['arm']="${GIT_RELEASE_URL}/ubuntu-${dist_version}-arm-pd-${CURRENT_VERSION}.tar.xz" - TARBALL_SHA256['arm']="$(sha256sum "${ROOTFS_DIR}/ubuntu-${dist_version}-arm-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')" - TARBALL_URL['x86_64']="${GIT_RELEASE_URL}/ubuntu-${dist_version}-x86_64-pd-${CURRENT_VERSION}.tar.xz" - TARBALL_SHA256['x86_64']="$(sha256sum "${ROOTFS_DIR}/ubuntu-${dist_version}-x86_64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')" - - distro_setup() { - ${TAB}# Configure en_US.UTF-8 locale. - ${TAB}sed -i -E 's/#[[:space:]]?(en_US.UTF-8[[:space:]]+UTF-8)/\1/g' ./etc/locale.gen - ${TAB}run_proot_cmd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales - } - EOF -}