Remove t2 external

This commit is contained in:
Aditya Garg 2022-12-20 14:57:08 +05:30
parent 1d63085684
commit 73ca679965
4 changed files with 1 additions and 64 deletions

View File

@ -38,52 +38,6 @@ jobs:
github_token: ${{ secrets.PAT }}
branch: kinetic
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
sudo apt install git
mkdir /tmp/artifacts
git clone https://github.com/t2linux/T2-Ubuntu-Kernel.git
sed -i 's/LOCALVERSION=-t2-\"${CODENAME}\"/LOCALVERSION=-t2-external/g' ${{ github.workspace }}/T2-Ubuntu-Kernel/build.sh
cd ${{ github.workspace }}/T2-Ubuntu-Kernel/patches
wget https://github.com/AdityaGarg8/T2-Ubuntu/raw/ssd/ssd.patch
cd ${{ github.workspace }}/T2-Ubuntu-Kernel
sudo ./build.sh
sudo rm /tmp/artifacts/*dbg*
sudo rm /tmp/artifacts/*libc-dev*
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: kernel-${{ env.kerneltag }}
path: /tmp/artifacts/*
- name: Release
if: github.ref == 'refs/heads/jammy'
uses: softprops/action-gh-release@v1
with:
files: |
/tmp/artifacts/*.deb
tag_name: v${{ env.kerneltag }}-kernel
draft: false
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Safe-graphics:
needs: [Kernel]
runs-on: ubuntu-22.04
@ -165,12 +119,3 @@ jobs:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete kernel from releases
if: github.ref == 'refs/heads/jammy'
uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: true
tag_name: v${{ env.isotag }}-kernel
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -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.

View File

@ -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-jammy t2-external
for ALTERNATIVE in t2-jammy
do
echo >&2 "===]> Info: Start building ${ALTERNATIVE}... "

View File

@ -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/linux-headers-KVER-${ALTERNATIVE}_KVER-PREL_amd64.deb > /tmp/headers.deb
curl -L https://github.com/AdityaGarg8/T2-Ubuntu/releases/download/vKVER-PREL-kernel/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