From efb2683cfc168c3b110c6664ee61eabcf85f3f30 Mon Sep 17 00:00:00 2001 From: madaidan <50278627+madaidan@users.noreply.github.com> Date: Sun, 8 Mar 2020 17:49:12 +0000 Subject: [PATCH] Hide unprivileged_userfaultfd error --- etc/initramfs-tools/scripts/init-bottom/sysctl-initramfs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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