Browse Source

ci: don't use `rpm` to determine the kernel version

for `/etc/profile.d/dracut-test.sh`
master
Harald Hoyer 3 years ago committed by Harald Hoyer
parent
commit
c7d8334d26
  1. 2
      test/container/Dockerfile-Arch
  2. 2
      test/container/Dockerfile-Fedora-33
  3. 2
      test/container/Dockerfile-Fedora-34
  4. 2
      test/container/Dockerfile-Fedora-latest

2
test/container/Dockerfile-Arch

@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut @@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut
ENV container docker
LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"

RUN echo 'export DRACUT_NO_XATTR=1 KVERSION="$(rpm -qa kernel --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" | sort -rn | head -1)"' > /etc/profile.d/dracut-test.sh
RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh

# Install needed packages for the dracut CI container
RUN pacman --noconfirm -Sy \

2
test/container/Dockerfile-Fedora-33

@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut @@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut
ENV container docker
LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"

RUN echo 'export DRACUT_NO_XATTR=1 KVERSION="$(rpm -qa kernel --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" | sort -rn | head -1)"' > /etc/profile.d/dracut-test.sh
RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh

# Install needed packages for the dracut CI container
RUN dnf -y install --setopt=install_weak_deps=False \

2
test/container/Dockerfile-Fedora-34

@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut @@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut
ENV container docker
LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"

RUN echo 'export DRACUT_NO_XATTR=1 KVERSION="$(rpm -qa kernel --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" | sort -rn | head -1)"' > /etc/profile.d/dracut-test.sh
RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh

# Install needed packages for the dracut CI container
RUN dnf -y install --setopt=install_weak_deps=False \

2
test/container/Dockerfile-Fedora-latest

@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut @@ -5,7 +5,7 @@ MAINTAINER https://github.com/dracutdevs/dracut
ENV container docker
LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"

RUN echo 'export DRACUT_NO_XATTR=1 KVERSION="$(rpm -qa kernel --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" | sort -rn | head -1)"' > /etc/profile.d/dracut-test.sh
RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh

# Install needed packages for the dracut CI container
RUN dnf -y install --setopt=install_weak_deps=False \

Loading…
Cancel
Save