Skip to content

Commit

Permalink
fix: lvm2 modprobe path
Browse files Browse the repository at this point in the history
LVM2 configure uses `AC_PATH_TOOL` to find modprobe path if not set, as
we're building inside tools it was picking up `/toolchain/bin/modprobe`.
Explicitly set `MODPROBE_CMD=/sbin/modprobe` to the path of `modprobe`
binary in talos.

Fixes: siderolabs/talos#9300

Signed-off-by: Noel Georgi <git@frezbo.dev>
(cherry picked from commit ca2e8c8)
  • Loading branch information
frezbo authored and smira committed Sep 20, 2024
1 parent 800cca0 commit df1a1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lvm2/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ steps:
--enable-udev_sync \
--enable-udev_rules \
--enable-static_link \
--with-udev-prefix=/usr
--with-udev-prefix=/usr \
MODPROBE_CMD=/sbin/modprobe
rm -f /sbin/blkdeactivate \
/sbin/fsadm \
Expand Down

0 comments on commit df1a1a5

Please sign in to comment.