diff --git a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs index 71e82f4..6912637 100755 --- a/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs +++ b/etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs @@ -15,7 +15,8 @@ prereqs) ;; esac -sysctl -p ${rootmnt}/etc/sysctl.conf >/dev/null -sysctl -p ${rootmnt}/etc/sysctl.d/*.conf >/dev/null +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