mirror of https://github.com/marcosfad/mbp-ubuntu
Remove t2-external
This commit is contained in:
parent
5179d441bd
commit
6983404a1b
|
@ -1,67 +1,10 @@
|
|||
---
|
||||
name: CI - Kinetic
|
||||
name: CI
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
[push]
|
||||
|
||||
jobs:
|
||||
Kernel:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Free up disk space for the CI
|
||||
uses: AdityaGarg8/remove-unwanted-software@v1
|
||||
with:
|
||||
remove-android: 'true'
|
||||
remove-dotnet: 'true'
|
||||
remove-haskell: 'false'
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build kernel with internal SSD removed
|
||||
run: |
|
||||
VERSION=$(grep ^KERNEL_VERSION build.sh | head -n1| cut -d = -f2)
|
||||
REL=$(grep "PKGREL=\d*" build.sh | cut -d = -f2)
|
||||
echo "kerneltag=${VERSION}-${REL}" >> $GITHUB_ENV
|
||||
|
||||
DOCKER_IMAGE=ubuntu:22.10
|
||||
docker pull ${DOCKER_IMAGE}
|
||||
docker run \
|
||||
-t \
|
||||
-v "$(pwd)":/repo \
|
||||
${DOCKER_IMAGE} \
|
||||
/bin/bash -c "cd /repo && \
|
||||
apt-get update && \
|
||||
apt-get install -y lsb-release git wget && \
|
||||
mkdir /tmp/artifacts && \
|
||||
git clone https://github.com/t2linux/T2-Ubuntu-Kernel.git && \
|
||||
sed -i "s/CODENAME=.*/CODENAME=external/g" /repo/T2-Ubuntu-Kernel/build.sh && cd /repo/T2-Ubuntu-Kernel && \
|
||||
cd /repo/T2-Ubuntu-Kernel/patches && \
|
||||
wget https://github.com/AdityaGarg8/T2-Ubuntu/raw/ssd/ssd.patch && \
|
||||
cd /repo/T2-Ubuntu-Kernel && \
|
||||
./build.sh && mkdir /repo/debs && \
|
||||
rm /tmp/artifacts/*dbg* && \
|
||||
rm /tmp/artifacts/*libc-dev* && \
|
||||
cp -r /tmp/artifacts/* /repo/debs"
|
||||
mkdir /tmp/artifacts
|
||||
cp -r "$(pwd)"/debs/* /tmp/artifacts
|
||||
|
||||
- name: Upload package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: kernel-${{ env.kerneltag }}-kinetic
|
||||
path: /tmp/artifacts/*
|
||||
|
||||
- name: Release
|
||||
if: github.ref == 'refs/heads/kinetic'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
/tmp/artifacts/*.deb
|
||||
tag_name: v${{ env.kerneltag }}-kernel-kinetic
|
||||
draft: false
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Safe-graphics:
|
||||
needs: [Kernel]
|
||||
|
@ -144,12 +87,3 @@ jobs:
|
|||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Delete kernel from releases
|
||||
if: github.ref == 'refs/heads/kinetic'
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: v${{ env.isotag }}-kernel-kinetic
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
@ -4,6 +4,4 @@ Follow [this guide](https://wiki.t2linux.org/guides/wifi-bluetooth/) for Wi-Fi a
|
|||
|
||||
Users of **MacBookPro16,4** are recommended to use the safe graphics ISO as the kernel doesn't have the driver for their AMD Graphics Card. Rest users can use the normal ISO.
|
||||
|
||||
The **t2-external** ISO has the internal SSD support removed in the kernel. This can be useful if you wish to install on an external SSD. After installation, you can update your kernel to a **t2** kernel by following [this guide](https://github.com/t2linux/T2-Ubuntu-Kernel#installation) which shall bring back internal SSD support.
|
||||
|
||||
**Getting kernel updates :-** Post installation, users are recommended to set up the [kernel update script](https://github.com/t2linux/T2-Ubuntu-Kernel#installation) to receive kernel updates.
|
||||
|
|
2
build.sh
2
build.sh
|
@ -36,7 +36,7 @@ apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="
|
|||
syslinux
|
||||
|
||||
echo >&2 "===]> Info: Start loop... "
|
||||
for ALTERNATIVE in t2-kinetic t2-external
|
||||
for ALTERNATIVE in t2-kinetic
|
||||
do
|
||||
echo >&2 "===]> Info: Start building ${ALTERNATIVE}... "
|
||||
|
||||
|
|
|
@ -67,14 +67,8 @@ apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="
|
|||
grub2 \
|
||||
nautilus-admin
|
||||
|
||||
if [[ ${ALTERNATIVE} = t2-external ]]
|
||||
then
|
||||
curl -L https://github.com/AdityaGarg8/T2-Ubuntu/releases/download/vKVER-PREL-kernel-kinetic/linux-headers-KVER-${ALTERNATIVE}_KVER-PREL_amd64.deb > /tmp/headers.deb
|
||||
curl -L https://github.com/AdityaGarg8/T2-Ubuntu/releases/download/vKVER-PREL-kernel-kinetic/linux-image-KVER-${ALTERNATIVE}_KVER-PREL_amd64.deb > /tmp/image.deb
|
||||
else
|
||||
curl -L https://github.com/t2linux/T2-Ubuntu-Kernel/releases/download/vKVER-PREL/linux-headers-KVER-${ALTERNATIVE}_KVER-PREL_amd64.deb > /tmp/headers.deb
|
||||
curl -L https://github.com/t2linux/T2-Ubuntu-Kernel/releases/download/vKVER-PREL/linux-image-KVER-${ALTERNATIVE}_KVER-PREL_amd64.deb > /tmp/image.deb
|
||||
fi
|
||||
file /tmp/*
|
||||
apt install /tmp/headers.deb /tmp/image.deb
|
||||
|
||||
|
|
Loading…
Reference in New Issue