mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 07:26:58 +02:00
coreos/config: Add hooks for zfs ebuilds
The zfs-kmod ebuild needs KERNEL_DIR to point to the correct /lib/modules directory. The zfs ebuild installs two systemd unit masks to /usr/lib/systemd which result in "dangling symlink" errors during the image build. These systemd unit masks are only necessary for old Ubuntu systems that have sysv-init-systemd compat wrappers. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
bda8148236
commit
e8b4b308c9
4
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs
vendored
Normal file
4
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
cros_post_src_install_rm_systemd_masks() {
|
||||||
|
rm "${D}$(systemd_get_systemunitdir)"/zfs-load-key.service
|
||||||
|
rm "${D}$(systemd_get_systemunitdir)"/zfs-import.service
|
||||||
|
}
|
2
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod
vendored
Normal file
2
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
: ${MODULES_ROOT:=$(echo ${SYSROOT}/lib/modules/*)}
|
||||||
|
KERNEL_DIR="${MODULES_ROOT}/build"
|
Loading…
Reference in New Issue
Block a user