diff --git a/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/README.md b/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/README.md index cfb0a6ca81..379916ebf0 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/README.md +++ b/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/README.md @@ -13,3 +13,8 @@ systemd[1]: lvm2-activation-early.service: Failed with result 'start-limit-hit'. Set RemainAfterExit=yes as done for the other oneshot services to prevent the unit from running multiple times in a row and hitting the restart limit. + + + +We also patch the configure script to use the correct path for systemd +util directory. diff --git a/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/lvm2-2.02.188-r2.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/lvm2-2.02.188-r2.ebuild index fde27a9249..4a646e65df 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/lvm2-2.02.188-r2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-fs/lvm2/lvm2-2.02.188-r2.ebuild @@ -123,6 +123,13 @@ src_prepare() { sed -i -e 's/^\(MAN7+=.*\) $(LVMTHINMAN) \(.*\)$/\1 \2/' man/Makefile.in || die fi + # Flatcar: The configure script tries to detect the systemd + # util dir without providing a way for us to override it, so + # modify the script. + sed -i \ + -e "s#^\(systemdutildir=\).*#\1$(systemd_get_utildir)#" \ + configure{.ac,} || die + eautoreconf }