Browse Source
Any script placed in /pre-udev will be sourced just before udev starts device scanning and loading. Any script placed in /pre-mount will be sourced just before we try to mount a root filesystem. Any script placed in /pre-pivot will be sourced just before we switch to the new root filesystem. These hooks should be the minimum needed to add back plymouth and deal with more advanced filesysem mounting needs (multipath, iscsi, nfs, nbd, etc.)master


6 changed files with 25 additions and 14 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash |
||||
# FIXME: load selinux policy. this should really be done after we switchroot |
||||
[[ -x $NEWROOT/usr/sbin/load_policy ]] || return |
||||
chroot $NEWROOT /usr/sbin/load_policy -i |
||||
if (($? == 3)); then |
||||
echo "Initial SELinux policy load failed and enforcing mode requested." |
||||
echo "Not continuing" |
||||
sleep 100d |
||||
exit 1 |
||||
fi |
Loading…
Reference in new issue