mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-09 06:36:44 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7c25fc517e
@ -16,10 +16,15 @@ prereqs)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
## ${rootmnt} is mounted read-only in the initramfs so it needs to be remounted first.
|
## ${rootmnt} is mounted read-only in the initramfs so it needs to be remounted first.
|
||||||
mount -o remount,rw "${rootmnt}"
|
if mount | grep "${rootmnt}" | grep -q "(ro,"; then
|
||||||
|
remount="yes"
|
||||||
|
mount -o remount,rw "${rootmnt}"
|
||||||
|
fi
|
||||||
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
|
||||||
mount -o remount,ro "${rootmnt}"
|
if [ "${remount}" = "yes" ]; then
|
||||||
|
mount -o remount,ro "${rootmnt}"
|
||||||
|
fi
|
||||||
grep -v "unprivileged_userfaultfd" "${rootmnt}/var/log/sysctl-initramfs-error.log"
|
grep -v "unprivileged_userfaultfd" "${rootmnt}/var/log/sysctl-initramfs-error.log"
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user