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

Added metapackages linux-image-amd64-meta with right dependencies

parent e02fca9c
No related branches found
No related tags found
No related merge requests found
Pipeline #3055 passed
......@@ -56,6 +56,12 @@ cd ..
dch -l "+zs" "MetaCentrum patches"
for i in `ls debian/patches/meta`; do dch -a "$i"; done
VER_PKG=$(head -1 debian/changelog | grep -Po "\d[^\)]+")
VER_KER=$(ls debian/linux-headers-*-cloud-amd64.postinst | grep -Po "\d.+(?=-cloud)")
cd ..
./make_pkg ${VER_PKG} ${VER_KER}
cd ${LINDIR}
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control
# Build balicku (poprve skonci hned chybou)
......
make_pkg 0 → 100755
#!/bin/bash
VER_PKG=$1
VER_KER=$2
echo $VER_PKG
echo $VER_KER
rm -rf kernel headers
mkdir -p {kernel,headers}/DEBIAN
cat > kernel/DEBIAN/control <<EOF
Package: linux-image-amd64-meta
Version: ${VER_PKG}
Architecture: amd64
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Installed-Size: 13
Depends: linux-image-${VER_KER}-amd64-unsigned (= ${VER_PKG})
Section: kernel
Priority: optional
Homepage: https://www.kernel.org/
Description: Linux for 64-bit PCs (meta-package)
This package depends on the latest Linux kernel and modules for use on PCs
with AMD64, Intel 64 or VIA Nano processors.
EOF
cat > headers/DEBIAN/control <<EOF
Package: linux-headers-amd64-meta
Version: ${VER_PKG}
Architecture: amd64
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Installed-Size: 10
Depends: linux-headers-${VER_KER}-amd64 (= ${VER_PKG})
Section: kernel
Priority: optional
Homepage: https://www.kernel.org/
Description: Header files for Linux amd64 configuration (meta-package)
This package depends on the architecture-specific header files for the
latest Linux kernel amd64 configuration.
EOF
dpkg-deb -b kernel linux-image-amd64-meta.deb
dpkg-deb -b headers linux-headers-amd64-meta.deb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment