diff options
Diffstat (limited to 'personal/zfs/build')
-rwxr-xr-x | personal/zfs/build | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/personal/zfs/build b/personal/zfs/build index 52cf826..49955e5 100755 --- a/personal/zfs/build +++ b/personal/zfs/build @@ -1,33 +1,21 @@ #!/bin/sh -e -# Build script originally taken from github.com/jedavies-dev/kiss-zfs -# Patched to work with the latest kernel, better directory management etc. - -sed -i 's/CDDL/GPL/g' META ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --sbindir=/usr/bin \ + --with-mounthelperdir=/usr/bin \ + --with-udevdir=/usr/lib/udev \ + --with-udevruledir=/usr/lib/udev/rules.d \ + --with-config=user \ --disable-systemd \ --disable-sysvinit \ - --disable-nls \ - --enable-linux-builtin \ - --with-linux="/usr/lib/modules/${KERNEL_VERSION:-$(uname -r)}/build" + --disable-nls -make +make CCLD="${CC:-cc} -all-static" make DESTDIR="$1" install -cd module -make -make DESTDIR="$1/usr" install - -# Holy hell zfs is insistent on not installing files where I want them to be -# installed. -mv "$1/lib/udev" "$1/usr/lib" -mv "$1/sbin/mount.zfs" "$1/usr/bin/mount.zfs" -rm -r "$1/sbin" "$1/lib" - +# Remove unrequired files rm -rf "$1/usr/share/zfs/zfs-tests" \ "$1/usr/lib/dracut" \ "$1/usr/share/initramfs-tools" - |