diff --git a/etc/initramfs-tools/hooks/sysctl-initramfs b/etc/initramfs-tools/hooks/sysctl-initramfs new file mode 100755 index 0000000..d091ca8 --- /dev/null +++ b/etc/initramfs-tools/hooks/sysctl-initramfs @@ -0,0 +1,21 @@ +#!/bin/sh + +## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP +## See the file COPYING for copying conditions. + +set -e + +PREREQ="" +prereqs() +{ + echo "$PREREQ" +} +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions +copy_exec /sbin/sysctl /sbin diff --git a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs new file mode 100755 index 0000000..534d8a7 --- /dev/null +++ b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs @@ -0,0 +1,18 @@ +#!/bin/sh + +## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP +## See the file COPYING for copying conditions. + +PREREQ="" +prereqs() +{ + echo "$PREREQ" +} +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +sysctl -p ${rootmnt}/etc/sysctl.d/*.conf