mirror of https://github.com/marcosfad/mbp-ubuntu
22.10 - Kinetic Kudu
This commit is contained in:
parent
df36be856d
commit
8eff3ef77f
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
name: CI - Jammy
|
name: CI - Kinetic
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
[push]
|
[push]
|
||||||
|
@ -11,7 +11,15 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: sudo ./build.sh
|
run: |
|
||||||
|
DOCKER_IMAGE=ubuntu:22.10
|
||||||
|
docker pull ${DOCKER_IMAGE}
|
||||||
|
docker run \
|
||||||
|
-t \
|
||||||
|
-v "$(pwd)":/repo \
|
||||||
|
${DOCKER_IMAGE} \
|
||||||
|
/bin/bash -c 'cd /repo && \
|
||||||
|
./build.sh'
|
||||||
|
|
||||||
- name: print sha256sum
|
- name: print sha256sum
|
||||||
run: cat output/sha256
|
run: cat output/sha256
|
||||||
|
@ -41,7 +49,7 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.ref == 'refs/heads/jammy-16,4'
|
if: github.ref == 'refs/heads/kinetic-16,4'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: ${{ github.workspace }}/*.iso
|
files: ${{ github.workspace }}/*.iso
|
||||||
|
|
|
@ -5,7 +5,7 @@ echo >&2 "===]> Info: Checkout bootstrap... "
|
||||||
debootstrap \
|
debootstrap \
|
||||||
--arch=amd64 \
|
--arch=amd64 \
|
||||||
--variant=minbase \
|
--variant=minbase \
|
||||||
jammy \
|
kinetic \
|
||||||
"${CHROOT_PATH}" \
|
"${CHROOT_PATH}" \
|
||||||
http://archive.ubuntu.com/ubuntu/
|
http://archive.ubuntu.com/ubuntu/
|
||||||
|
|
||||||
|
|
|
@ -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 22.04 LTS "Jammy Jellyfish" - Beta amd64
|
#define DISKNAME Ubuntu MBP 22.10 "Kinetic Kudu" - Beta amd64
|
||||||
#define TYPE binary
|
#define TYPE binary
|
||||||
#define TYPEbinary 1
|
#define TYPEbinary 1
|
||||||
#define ARCH amd64
|
#define ARCH amd64
|
||||||
|
|
|
@ -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-22.04-${KERNEL_VERSION}-safe-graphics.iso" \
|
-output "${ROOT_PATH}/ubuntu-22.10-${KERNEL_VERSION}-safe-graphics.iso" \
|
||||||
-graft-points \
|
-graft-points \
|
||||||
"." \
|
"." \
|
||||||
/boot/grub/bios.img=isolinux/bios.img \
|
/boot/grub/bios.img=isolinux/bios.img \
|
||||||
|
|
10
build.sh
10
build.sh
|
@ -5,7 +5,7 @@ ROOT_PATH=$(pwd)
|
||||||
WORKING_PATH=/root/work
|
WORKING_PATH=/root/work
|
||||||
CHROOT_PATH="${WORKING_PATH}/chroot"
|
CHROOT_PATH="${WORKING_PATH}/chroot"
|
||||||
IMAGE_PATH="${WORKING_PATH}/image"
|
IMAGE_PATH="${WORKING_PATH}/image"
|
||||||
KERNEL_VERSION=6.0.7
|
KERNEL_VERSION=6.0.6
|
||||||
PKGREL=1
|
PKGREL=1
|
||||||
sed -i "s/KVER/${KERNEL_VERSION}/g" $(pwd)/files/chroot_build.sh
|
sed -i "s/KVER/${KERNEL_VERSION}/g" $(pwd)/files/chroot_build.sh
|
||||||
sed -i "s/PREL/${PKGREL}/g" $(pwd)/files/chroot_build.sh
|
sed -i "s/PREL/${PKGREL}/g" $(pwd)/files/chroot_build.sh
|
||||||
|
@ -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-jammy
|
for ALTERNATIVE in t2-kinetic
|
||||||
do
|
do
|
||||||
echo >&2 "===]> Info: Start building ${ALTERNATIVE}... "
|
echo >&2 "===]> Info: Start building ${ALTERNATIVE}... "
|
||||||
|
|
||||||
echo >&2 "===]> Info: Build Ubuntu Jammy... "
|
echo >&2 "===]> Info: Build Ubuntu Kinetic... "
|
||||||
/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 Jammy... "
|
echo >&2 "===]> Info: Build Image Kinetic... "
|
||||||
/bin/bash -c "
|
/bin/bash -c "
|
||||||
ROOT_PATH=${ROOT_PATH} \\
|
ROOT_PATH=${ROOT_PATH} \\
|
||||||
WORKING_PATH=${WORKING_PATH} \\
|
WORKING_PATH=${WORKING_PATH} \\
|
||||||
|
@ -85,7 +85,7 @@ 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/livecd-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-22.04-${KERNEL_VERSION}-${ALTERNATIVE}-safe-graphics.iso"
|
zip -s 1500m "${ROOT_PATH}/output/livecd-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-22.10-${KERNEL_VERSION}-${ALTERNATIVE}-safe-graphics.iso"
|
||||||
done
|
done
|
||||||
## Calculate sha256 sums of built ISO
|
## Calculate sha256 sums of built ISO
|
||||||
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256"
|
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256"
|
||||||
|
|
|
@ -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-jammy-live" >/etc/hostname
|
echo "ubuntu-kinetic-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/ jammy main restricted universe multiverse
|
deb http://archive.ubuntu.com/ubuntu/ kinetic main restricted universe multiverse
|
||||||
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
|
deb-src http://archive.ubuntu.com/ubuntu/ kinetic main restricted universe multiverse
|
||||||
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
|
deb http://archive.ubuntu.com/ubuntu/ kinetic-security main restricted universe multiverse
|
||||||
deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
|
deb-src http://archive.ubuntu.com/ubuntu/ kinetic-security main restricted universe multiverse
|
||||||
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
|
deb http://archive.ubuntu.com/ubuntu/ kinetic-updates main restricted universe multiverse
|
||||||
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
|
deb-src http://archive.ubuntu.com/ubuntu/ kinetic-updates main restricted universe multiverse
|
||||||
EOF
|
EOF
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
|
@ -158,13 +158,13 @@ apt-get purge -y -qq \
|
||||||
vim \
|
vim \
|
||||||
binutils \
|
binutils \
|
||||||
linux-generic \
|
linux-generic \
|
||||||
linux-headers-5.15.0-30 \
|
linux-headers-5.19.0-21 \
|
||||||
linux-headers-5.15.0-30-generic \
|
linux-headers-5.19.0-21-generic \
|
||||||
linux-headers-generic \
|
linux-headers-generic \
|
||||||
linux-image-5.15.0-30-generic \
|
linux-image-5.19.0-21-generic \
|
||||||
linux-image-generic \
|
linux-image-generic \
|
||||||
linux-modules-5.15.0-30-generic \
|
linux-modules-5.19.0-21-generic \
|
||||||
linux-modules-extra-5.15.0-30-generic
|
linux-modules-extra-5.19.0-21-generic
|
||||||
|
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|
||||||
|
|
|
@ -6,15 +6,15 @@ insmod all_video
|
||||||
set default="0"
|
set default="0"
|
||||||
set timeout=30
|
set timeout=30
|
||||||
|
|
||||||
menuentry "Try Ubuntu Jammy Jellyfish without installing" {
|
menuentry "Try Ubuntu Kinetic Kudu without installing" {
|
||||||
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=compat intel_iommu=on iommu=pt ---
|
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro pcie_ports=compat intel_iommu=on iommu=pt ---
|
||||||
initrd /casper/initrd
|
initrd /casper/initrd
|
||||||
}
|
}
|
||||||
menuentry "Try Ubuntu Jammy Jellyfish without installing (Safe Graphics)" {
|
menuentry "Try Ubuntu Kinetic Kudu without installing (Safe Graphics)" {
|
||||||
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro nomodeset pcie_ports=compat intel_iommu=on iommu=pt ---
|
linux /casper/vmlinuz file=/cdrom/preseed/mbp.seed boot=casper ro nomodeset pcie_ports=compat intel_iommu=on iommu=pt ---
|
||||||
initrd /casper/initrd
|
initrd /casper/initrd
|
||||||
}
|
}
|
||||||
menuentry "Install Ubuntu Jammy Jellyfish (Safe Graphics)" {
|
menuentry "Install Ubuntu Kinetic Kudu (Safe Graphics)" {
|
||||||
linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity nomodeset pcie_ports=compat intel_iommu=on iommu=pt ---
|
linux /casper/vmlinuz preseed/file=/cdrom/preseed/mbp.seed boot=casper only-ubiquity nomodeset pcie_ports=compat intel_iommu=on iommu=pt ---
|
||||||
initrd /casper/initrd
|
initrd /casper/initrd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue