Add support for 23.10 Mantic Minotaur

This commit is contained in:
Aditya Garg 2023-10-15 11:43:34 +05:30
parent 40ec6ea3c0
commit 74ec6ce204
7 changed files with 27 additions and 27 deletions

View File

@ -5,7 +5,7 @@ echo >&2 "===]> Info: Checkout bootstrap... "
debootstrap \ debootstrap \
--arch=amd64 \ --arch=amd64 \
--variant=minbase \ --variant=minbase \
lunar \ mantic \
"${CHROOT_PATH}" \ "${CHROOT_PATH}" \
http://archive.ubuntu.com/ubuntu/ http://archive.ubuntu.com/ubuntu/

View File

@ -37,7 +37,7 @@ done
echo >&2 "===]> Info: Create diskdefines... " echo >&2 "===]> Info: Create diskdefines... "
cat <<EOF >"${IMAGE_PATH}"/README.diskdefines cat <<EOF >"${IMAGE_PATH}"/README.diskdefines
#define DISKNAME Ubuntu MBP 23.04 "Lunar Lobster" - amd64 #define DISKNAME Ubuntu MBP 23.10 "Mantic Minotaur" - amd64
#define TYPE binary #define TYPE binary
#define TYPEbinary 1 #define TYPEbinary 1
#define ARCH amd64 #define ARCH amd64

View File

@ -23,7 +23,7 @@ xorriso -as mkisofs \
-no-emul-boot \ -no-emul-boot \
-isohybrid-mbr "${ROOT_PATH}/files/isohdpfx.bin" \ -isohybrid-mbr "${ROOT_PATH}/files/isohdpfx.bin" \
-isohybrid-gpt-basdat -isohybrid-apm-hfsplus \ -isohybrid-gpt-basdat -isohybrid-apm-hfsplus \
-output "${ROOT_PATH}/ubuntu-23.04-${KERNEL_VERSION}.iso" \ -output "${ROOT_PATH}/ubuntu-23.10-${KERNEL_VERSION}.iso" \
-graft-points \ -graft-points \
"." \ "." \
/boot/grub/bios.img=isolinux/bios.img \ /boot/grub/bios.img=isolinux/bios.img \

View File

@ -36,11 +36,11 @@ apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="
syslinux syslinux
echo >&2 "===]> Info: Start loop... " echo >&2 "===]> Info: Start loop... "
for ALTERNATIVE in t2-lunar for ALTERNATIVE in t2-mantic
do do
echo >&2 "===]> Info: Start building ${ALTERNATIVE}... " echo >&2 "===]> Info: Start building ${ALTERNATIVE}... "
echo >&2 "===]> Info: Build Ubuntu Lunar... " echo >&2 "===]> Info: Build Ubuntu Mantic... "
/bin/bash -c " /bin/bash -c "
ROOT_PATH=${ROOT_PATH} \\ ROOT_PATH=${ROOT_PATH} \\
WORKING_PATH=${WORKING_PATH} \\ WORKING_PATH=${WORKING_PATH} \\
@ -51,7 +51,7 @@ do
${ROOT_PATH}/01_build_file_system.sh ${ROOT_PATH}/01_build_file_system.sh
" "
echo >&2 "===]> Info: Build Image Lunar... " echo >&2 "===]> Info: Build Image Mantic... "
/bin/bash -c " /bin/bash -c "
ROOT_PATH=${ROOT_PATH} \\ ROOT_PATH=${ROOT_PATH} \\
WORKING_PATH=${WORKING_PATH} \\ WORKING_PATH=${WORKING_PATH} \\
@ -85,10 +85,10 @@ do
fi fi
### Zip iso and split it into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that ### Zip iso and split it into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that
cd "${ROOT_PATH}" cd "${ROOT_PATH}"
zip -s 1500m "${ROOT_PATH}/output/ubuntu-23.04-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-23.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso" zip -s 1500m "${ROOT_PATH}/output/ubuntu-23.10-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-23.10-${KERNEL_VERSION}-${ALTERNATIVE}.iso"
done done
## Calculate sha256 sums of built ISO ## Calculate sha256 sums of built ISO
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256-ubuntu-23.04" sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256-ubuntu-23.10"
find ./ | grep ".iso" find ./ | grep ".iso"
find ./ | grep ".zip" find ./ | grep ".zip"

View File

@ -2,7 +2,7 @@
set -eu -o pipefail set -eu -o pipefail
DOCKER_IMAGE=ubuntu:23.04 DOCKER_IMAGE=ubuntu:23.10
docker pull ${DOCKER_IMAGE} docker pull ${DOCKER_IMAGE}
docker run \ docker run \

View File

@ -11,17 +11,17 @@ mount none -t devpts /dev/pts
export HOME=/root export HOME=/root
export LC_ALL=C export LC_ALL=C
echo "ubuntu-lunar-live" >/etc/hostname echo "ubuntu-mantic-live" >/etc/hostname
echo >&2 "===]> Info: Configure and update apt... " echo >&2 "===]> Info: Configure and update apt... "
cat <<EOF >/etc/apt/sources.list cat <<EOF >/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ lunar main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ mantic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lunar main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ mantic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ mantic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ mantic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ lunar-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lunar-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse
EOF EOF
apt-get update apt-get update
@ -136,13 +136,13 @@ apt-get purge -y -qq \
vim \ vim \
binutils \ binutils \
linux-generic \ linux-generic \
linux-headers-6.2.0-20 \ linux-headers-6.5.0-9 \
linux-headers-6.2.0-20-generic \ linux-headers-6.5.0-9-generic \
linux-headers-generic \ linux-headers-generic \
linux-image-6.2.0-20-generic \ linux-image-6.5.0-9-generic \
linux-image-generic \ linux-image-generic \
linux-modules-6.2.0-20-generic \ linux-modules-6.5.0-9-generic \
linux-modules-extra-6.2.0-20-generic \ linux-modules-extra-6.5.0-9-generic \
gedit gedit
apt-get autoremove -y apt-get autoremove -y

View File

@ -6,27 +6,27 @@ insmod all_video
set default="0" set default="0"
set timeout=30 set timeout=30
menuentry "Try Ubuntu Lunar Lobster without installing" { menuentry "Try Ubuntu Mantic Minotaur without installing" {
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=native intel_iommu=on iommu=pt --- linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=native intel_iommu=on iommu=pt ---
initrd /casper/initrd initrd /casper/initrd
} }
menuentry "Try Ubuntu Lunar Lobster without installing (Safe Graphics)" { menuentry "Try Ubuntu Mantic Minotaur without installing (Safe Graphics)" {
linux /casper/vmlinuz file=/cdrom/preseed/mbp164.seed boot=casper ro nomodeset pcie_ports=native intel_iommu=on iommu=pt --- linux /casper/vmlinuz file=/cdrom/preseed/mbp164.seed boot=casper ro nomodeset pcie_ports=native intel_iommu=on iommu=pt ---
initrd /casper/initrd initrd /casper/initrd
} }
menuentry "Try Ubuntu Lunar Lobster without installing (NVMe blacklisted)" { menuentry "Try Ubuntu Mantic Minotaur without installing (NVMe blacklisted)" {
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=native intel_iommu=on iommu=pt modprobe.blacklist=nvme --- linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=native intel_iommu=on iommu=pt modprobe.blacklist=nvme ---
initrd /casper/initrd initrd /casper/initrd
} }
menuentry "Install Ubuntu Lunar Lobster" { menuentry "Install Ubuntu Mantic Minotaur" {
linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity pcie_ports=native intel_iommu=on iommu=pt --- linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity pcie_ports=native intel_iommu=on iommu=pt ---
initrd /casper/initrd initrd /casper/initrd
} }
menuentry "Install Ubuntu Lunar Lobster (Safe Graphics)" { menuentry "Install Ubuntu Mantic Minotaur (Safe Graphics)" {
linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp164.seed boot=casper only-ubiquity nomodeset pcie_ports=native intel_iommu=on iommu=pt --- linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp164.seed boot=casper only-ubiquity nomodeset pcie_ports=native intel_iommu=on iommu=pt ---
initrd /casper/initrd initrd /casper/initrd
} }
menuentry "Install Ubuntu Lunar Lobster (NVMe blacklisted)" { menuentry "Install Ubuntu Mantic Minotaur (NVMe blacklisted)" {
linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity pcie_ports=native intel_iommu=on iommu=pt modprobe.blacklist=nvme --- linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity pcie_ports=native intel_iommu=on iommu=pt modprobe.blacklist=nvme ---
initrd /casper/initrd initrd /casper/initrd
} }