Skip to content

Commit e332b2c

Browse files
examples: workaround dracut xattr handling issues
Newer versions of dracut throw thousands of errors when trying to copy files into the initramfs in some container setups, and in some cases of symlinks can fail to include files entirely. This has led to a long-lingering problem that makes it difficult to build images locally (despite them working in CI). Here's the workaround: DRACUT_NO_XATTR=1. Thanks to Dick Marinus for that. See https://discussion.fedoraproject.org/t/146603/3 This lets us finally increase our Fedora version in the examples to 42. Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent 288cea1 commit e332b2c

File tree

8 files changed

+8
-4
lines changed

8 files changed

+8
-4
lines changed

examples/bls/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:41
1+
FROM fedora:42
22
COPY extra /
33
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
44
set -eux
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DRACUT_NO_XATTR=1

examples/uki/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# arg will be set to the fsverity digest of the container image. This should
1414
# be baked into the UKI.
1515

16-
FROM fedora:41 AS base
16+
FROM fedora:42 AS base
1717
COPY extra /
1818
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
1919
set -eux
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DRACUT_NO_XATTR=1

examples/unified-secureboot/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:41 AS base
1+
FROM fedora:42 AS base
22
COPY extra /
33
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
44
set -eux
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DRACUT_NO_XATTR=1

examples/unified/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:41 AS base
1+
FROM fedora:42 AS base
22
COPY extra /
33
RUN --mount=type=cache,target=/var/cache/libdnf5 <<EOF
44
set -eux
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DRACUT_NO_XATTR=1

0 commit comments

Comments
 (0)