47.起動時にSELinuxを無効にする方法
Fedoraを起動時に「Mount failed for selinuxfs on /selinux: No such file or directory」といったメッセージが出ることがあります
メッセージが出力されても特に停止するわけではないので問題ないですが、できれば綺麗に起動したいところです
カーネル起動オプションにSELINUX_INIT=NOとセットして起動することでメッセージが出力されなくなります
設定例)/boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.9-85.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.23.9-85.fc8 ro root=LABEL=/ rhgb quiet SELINUX_INIT=NO
initrd /initrd-2.6.23.9-85.fc8.img |
既にSELinuxを有効にしている場合には/etc/sysconfig/configを以下のようにします
もしも導入時にSELinuxを有効にしてしまいうまく動作しない場合は設定変更しましょう
|