summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-28 17:59:48 +0100
committerGitHub <noreply@github.com>2020-02-28 17:59:48 +0100
commitfbcddaebbbfad3ea674ec88b627735cdbadc1810 (patch)
treed009fe07d4bc0efcc576ed2e0482c01fdfb8d7bc /data
parent21a148b4d3063a6c12051a001c1fc26bbc212c0f (diff)
parentcb9b13d91011a82451cb621369fc388c9485773d (diff)
downloadvyos-build-fbcddaebbbfad3ea674ec88b627735cdbadc1810.tar.gz
vyos-build-fbcddaebbbfad3ea674ec88b627735cdbadc1810.zip
Merge pull request #82 from zdc/T1971
initramfs: T1971: Added initramfs-hook script for including modules
Diffstat (limited to 'data')
-rwxr-xr-xdata/live-build-config/includes.chroot/etc/initramfs-tools/hooks/10-vyos-addons29
1 files changed, 29 insertions, 0 deletions
diff --git a/data/live-build-config/includes.chroot/etc/initramfs-tools/hooks/10-vyos-addons b/data/live-build-config/includes.chroot/etc/initramfs-tools/hooks/10-vyos-addons
new file mode 100755
index 00000000..79130d7c
--- /dev/null
+++ b/data/live-build-config/includes.chroot/etc/initramfs-tools/hooks/10-vyos-addons
@@ -0,0 +1,29 @@
+#!/bin/sh
+PREREQ=""
+prereqs()
+{
+ echo "$PREREQ"
+}
+case $1 in
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+. /usr/share/initramfs-tools/hook-functions
+# Begin real processing below this line
+
+# include listed modules to initramfs but not load them without the necessity
+manual_add_modules igb ixgbe ixgbevf i40e i40evf
+
+# include modules from file (one per line) to initramfs but not load them without the necessity
+# add_modules_from_file /tmp/modlist
+
+# include listed modules to initramfs and load them during the boot
+# force_load xxx
+
+# executable to copy to initramfs, with library dependencies
+copy_exec /usr/lib/x86_64-linux-gnu/libnss_dns.so.2
+
+# copy other files ("other" here is a file type, so do not delete this keyword)
+copy_file other /etc/ssl/certs/ca-certificates.crt