We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bootc container inspect
1 parent aa2680f commit c68e2b4Copy full SHA for c68e2b4
1 file changed
contrib/packaging/configure-rootfs
@@ -9,6 +9,8 @@ ROOTFS="${2:-}"
9
CONFIG_DIR="/usr/lib/bootc/install"
10
mkdir -p "${CONFIG_DIR}"
11
12
+kver=$(bootc container inspect --json | jq -re .kernel.version)
13
+
14
# Do we have an explicit build-time override? Then write it.
15
if [ -n "$ROOTFS" ]; then
16
cat > "${CONFIG_DIR}/80-rootfs-override.toml" <<EOF
@@ -24,7 +26,7 @@ else
24
26
fs=
25
27
case "${VARIANT}" in
28
composefs*)
- btrfs=$(grep -qEe '^CONFIG_BTRFS_FS' /usr/lib/modules/*/config && echo btrfs || true)
29
+ btrfs=$(grep -qEe '^CONFIG_BTRFS_FS' /usr/lib/modules/${kver}/config && echo btrfs || true)
30
fs=${btrfs:-ext4}
31
;;
32
*)
0 commit comments