[Pkg-zfsonlinux-devel] [PATCH] Include the /etc/modprobe.d/{spl, zfs} files in the initrd if they exist
Turbo Fredriksson
turbo at bayour.com
Wed Jan 1 11:11:05 UTC 2014
The following changes since commit ce7aa1b0982102cfd14537f7c70ef719f7a094e6:
Don't load all keys, just the bootfs one (recursivly). (2014-01-01 11:58:02 +0100)
are available in the git repository at:
https://github.com/FransUrbo/pkg-zfsonlinux-zfs master
for you to fetch changes up to 6a22e7bcaf77671e6dd5fd92e0588fa5a46d4e02:
Include the /etc/modprobe.d/{spl,zfs} files in the initrd if they exist. (2014-01-01 12:00:28 +0100)
----------------------------------------------------------------
Turbo Fredriksson (1):
Include the /etc/modprobe.d/{spl,zfs} files in the initrd if they exist.
.../tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs b/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs
index b8bb41e..6a205d7 100755
--- a/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs
+++ b/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/zfs
@@ -70,6 +70,16 @@ else
hostname >"$DESTDIR/etc/hostname"
fi
+for ii in zfs spl
+do
+ if [ -f "/etc/modprobe.d/$ii" ]; then
+ if [ ! -d "$DESTDIR//etc/modprobe.d" ]; then
+ mkdir -p $DESTDIR//etc/modprobe.d
+ fi
+ cp -p "/etc/modprobe.d/$ii" $DESTDIR//etc/modprobe.d/
+ fi
+done
+
# The spl-dkms package ensures that the /etc/hostid file exists.
# NB: Commentary in the spl-dkms.postinst script.
[ -f "/etc/hostid" ] && cp -p "/etc/hostid" "$DESTDIR/etc/hostid"
More information about the Pkg-zfsonlinux-devel
mailing list