Set sysctl values in initramfs

This commit is contained in:
madaidan 2020-01-12 21:37:37 +00:00
parent 8341242abc
commit 8c4e0ff1c4
No known key found for this signature in database
GPG Key ID: CF52E4DE909EC236
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/sh
## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## 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

View File

@ -0,0 +1,18 @@
#!/bin/sh
## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## 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