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

zjistovani verzi musi byt v dockeru az po apt update

parent e34f4e90
Branches
No related tags found
No related merge requests found
Pipeline #2083 passed
...@@ -26,13 +26,15 @@ EOSOURCES ...@@ -26,13 +26,15 @@ EOSOURCES
#echo 'deb [trusted=yes] https://repo.metacentrum.cz/ ${VERSION_CODENAME} main pilot' >> /etc/apt/sources.list #echo 'deb [trusted=yes] https://repo.metacentrum.cz/ ${VERSION_CODENAME} main pilot' >> /etc/apt/sources.list
# Instalace buildovacich veci a zavislosti
apt update -qqq
PACKAGES="linux-image-amd64 linux-headers-amd64" PACKAGES="linux-image-amd64 linux-headers-amd64"
if [ "${VERSION_ID}" -eq "11" ]; then if [ "${VERSION_ID}" -eq "11" ]; then
PACKAGES="$(apt search linux-headers-5.10.0- 2>/dev/null | grep -Po "linux-headers-\K\d+\.\d+\.\d+\-\d+\-amd64" | sort -u | while read v; do echo "linux-image-$v linux-headers-$v"; done | paste -s -d ' ')" PACKAGES="$(apt search linux-headers-5.10.0- 2>/dev/null | grep -Po "linux-headers-\K\d+\.\d+\.\d+\-\d+\-amd64" | sort -u | while read v; do echo "linux-image-$v linux-headers-$v"; done | paste -s -d ' ')"
fi fi
# Instalace buildovacich veci a zavislosti
apt update -qqq
apt install -yqqq git devscripts build-essential module-assistant ${PACKAGES} apt install -yqqq git devscripts build-essential module-assistant ${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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment