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

Vyrobeni pseudobaliku se zavislosti na posledni verzi kernelu

parent bf7d14b6
Branches master
No related tags found
No related merge requests found
Pipeline #7577 passed
......@@ -37,9 +37,15 @@ fi
apt install -yqqq git devscripts build-essential module-assistant gpg wget ${PACKAGES}
m-a -l $(dpkg -l | grep -Po "linux-image-\K\d+.*\-amd64" | paste -s -d ',') a-b openafs > /dev/null 2>&1
#m-a -l $(dpkg -l | grep -Po "linux-image-\K\d+.*\-amd64" | paste -s -d ',') a-b openafs > /dev/null 2>&1
m-a -l 5.10.0-23-amd64 a-b openafs > /dev/null 2>&1
cp /usr/src/openafs-modules-*_amd64.deb .
VER_PKG=$(ls -1 /usr/src/openafs-modules-*_amd64.deb | tail -1 | grep -Po ".*\+\K[^_]+")
VER_KER=$(ls -1 /usr/src/openafs-modules-*_amd64.deb | tail -1 | grep -Po "modules\-\K[^_]+")
./make_pkg ${VER_PKG} ${VER_KER}
mkdir build
mv *.deb build/
......
make_pkg 0 → 100755
#!/bin/bash
VER_PKG=$1
VER_KER=$2
echo $VER_PKG
echo $VER_KER
rm -rf openafs-modules-meta
mkdir -p openafs-modules-meta/DEBIAN
cat > openafs-modules-meta/DEBIAN/control <<EOF
Package: openafs-modules-meta
Source: openafs-modules (1.8.6-5)
Version: 1.8.6-5+${VER_PKG}
Architecture: amd64
Maintainer: Russ Allbery <rra@debian.org>
Installed-Size: 31807
Recommends: linux-image-${VER_KER}
Breaks: openafs-client (<< 1.5.61)
Provides: openafs-modules3
Section: kernel
Priority: optional
Description: AFS distributed filesystem kernel module
AFS is a distributed filesystem allowing cross-platform sharing of
files among multiple computers. Facilities are provided for access
control, authentication, backup and administrative management.
.
This package provides the compiled AFS kernel module for kernel
version ${VER_KER}.
EOF
dpkg-deb -b openafs-modules-meta openafs-modules-meta.deb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment