diff --git a/Containerfile b/Containerfile index 9f41be2..b854381 100644 --- a/Containerfile +++ b/Containerfile @@ -11,4 +11,4 @@ RUN --mount=type=tmpfs,dst=/var \ --mount=type=bind,from=ctx,source=/,dst=/tmp/build-scripts \ /tmp/build-scripts/build.sh -RUN bootc container lint --fatal-warnings +RUN rm -rf /var/* && bootc container lint --fatal-warnings diff --git a/build.sh b/build.sh index 73cf357..34810e1 100755 --- a/build.sh +++ b/build.sh @@ -75,7 +75,3 @@ KERNEL_VERSION="$(find "/usr/lib/modules" -maxdepth 1 -type d ! -path "/usr/lib/ export DRACUT_NO_XATTR=1 dracut --no-hostonly --kver "$KERNEL_VERSION" --reproducible --zstd -v --add ostree -f "/usr/lib/modules/$KERNEL_VERSION/initramfs.img" chmod 0600 "/usr/lib/modules/${KERNEL_VERSION}/initramfs.img" - -rm -rf /var/* - -bootc container lint