Skip to content
Snippets Groups Projects
Commit f0d259b5 authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

add linux-headers

parent fd108a0c
No related branches found
No related tags found
No related merge requests found
Pipeline #10050 passed
...@@ -29,6 +29,7 @@ EOSOURCES ...@@ -29,6 +29,7 @@ EOSOURCES
apt update -qqq apt update -qqq
apt install -yqqq git devscripts build-essential apt install -yqqq git devscripts build-essential
### linux-image
apt download linux-image-amd64 apt download linux-image-amd64
LINFILE=$(find . -maxdepth 1 -name 'linux-image-amd64*' -type f) LINFILE=$(find . -maxdepth 1 -name 'linux-image-amd64*' -type f)
...@@ -38,11 +39,30 @@ dpkg-deb -R $LINFILE target ...@@ -38,11 +39,30 @@ dpkg-deb -R $LINFILE target
cd target cd target
PVER=$(grep -Po "Version: \K.*" DEBIAN/control) PVER=$(grep -Po "Version: \K.*" DEBIAN/control)
sed -e "s/${PVER}/${PVER}+zs1"/g -e "s/\(linux-image-.*-amd64\)/\1-unsigned"/g -e "s/Version: /Version: 1/g" DEBIAN/control -i sed -e "s/${PVER}/${PVER}+zs1/g" -e "s/\(linux-image-.*-amd64\)/\1-unsigned/g" -e "s/Version: /Version: 1/g" DEBIAN/control -i
cd .. cd ..
dpkg-deb -b target linux-image-amd64_1${PVER}+zs1_amd64.deb dpkg-deb -b target linux-image-amd64_1${PVER}+zs1_amd64.deb
rm -v $LINFILE rm -v $LINFILE
### End of linux-image
### linux-headers
apt download linux-headers-amd64
LINFILE=$(find . -maxdepth 1 -name 'linux-headers-amd64*' -type f)
mkdir target2
dpkg-deb -R $LINFILE target2
cd target2
PVER=$(grep -Po "Version: \K.*" DEBIAN/control)
sed -e "s/${PVER}/${PVER}+zs1/g" -e "s/Version: /Version: 1/g" DEBIAN/control -i
cd ..
dpkg-deb -b target2 linux-headers-amd64_1${PVER}+zs1_amd64.deb
rm -v $LINFILE
### End of linux-headers
mkdir build mkdir build
mv *.deb build/ mv *.deb build/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment