security-misc/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs
2020-03-08 17:49:12 +00:00

23 lines
522 B
Bash
Executable File

#!/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.conf >/dev/null 2>${rootmnt}/var/log/sysctl-initramfs-error.log
sysctl -p ${rootmnt}/etc/sysctl.d/*.conf >/dev/null 2>>${rootmnt}/var/log/sysctl-initramfs-error.log
grep -v "unprivileged_userfaultfd" /var/log/sysctl-initramfs-error.log
true