mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-26 05:19:28 -05:00
Fix sysctl-initramfs logs
This commit is contained in:
parent
e4118cb21e
commit
c8826d6702
@ -15,8 +15,11 @@ prereqs)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
## ${rootmnt} is mounted read-only in the initramfs so it needs to be remounted first.
|
||||||
|
mount -o remount,rw "${rootmnt}"
|
||||||
sysctl -p ${rootmnt}/etc/sysctl.conf >/dev/null 2>${rootmnt}/var/log/sysctl-initramfs-error.log
|
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
|
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
|
mount -o remount,ro "${rootmnt}"
|
||||||
|
grep -v "unprivileged_userfaultfd" "${rootmnt}/var/log/sysctl-initramfs-error.log"
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user