0

在 PXE 启动后选择启动配置文件开始安装时遇到问题。在网络安装服务器(相同的 DHCP 服务器)端,当我遇到此问题时,我可以在 /var/log/messages 中看到以下错误。

Nov 13 17:42:30 desktop10 dhcpd: DHCPDISCOVER from 00:0c:29:90:39:53 via eth0
Nov 13 17:42:30 desktop10 dhcpd: DHCPOFFER on 192.168.174.2 to 00:0c:29:90:39:53 via eth0
Nov 13 17:42:32 desktop10 dhcpd: Dynamic and static leases present for 192.168.174.2.
Nov 13 17:42:32 desktop10 dhcpd: Remove host declaration desktopy or remove 192.168.174.2
Nov 13 17:42:32 desktop10 dhcpd: from the dynamic address pool for 192.168.174/24
Nov 13 17:42:32 desktop10 dhcpd: DHCPREQUEST for 192.168.174.2 (192.168.174.10) from 00:0c:29:90:39:53 via eth0
Nov 13 17:42:32 desktop10 dhcpd: DHCPACK on 192.168.174.2 to 00:0c:29:90:39:53 via eth0
Nov 13 17:42:32 desktop10 in.tftpd[20546]: tftp: client does not accept options
Nov 13 17:42:36 desktop10 setroubleshoot: SELinux is preventing in.tftpd (tftpd_t) "read" to ./vmlinuz (httpd_sys_content_t). For complete SELinux messages. run sealert -l 97c61847-7ea2-435f-bede-c95302b034f5**

在服务器上 selinux 安全内容

[root@desktop10 ~]# ls -Z /tftpboot/images/ks-rhel-x86_64-server-6-60/vmlinuz
-rw-r--r--  apache apache system_u:object_r:httpd_sys_content_t /tftpboot/images/ks-rhel-x86_64-server-6-60/vmlinuz

注意:desktop10 是 RHEL5.6,如果我将 selinux 更改为 permissive 则可以继续安装。

有人可以帮我解决这个问题吗?如果有人需要更多信息,请告诉我。


按照评论中的建议进行了尝试,但没有运气

  [root@desktop10 ~]# restorecon -Rv /tftpboot/
  [root@desktop10 ~]# ls -Z /tftpboot/images/ks-rhel-x86_64-server-6-60/vmlinuz
  -rw-r--r--  apache apache system_u:object_r:httpd_sys_content_t /tftpboot/images/ks-rhel-x86_64-server-6-60/vmlinuz
4

2 回答 2

0

我认为如果您尝试使用 tftpd 上下文 tftpd_rw_t 重新标记目录,它可能会起作用:

# semanage fcontext -a -t tftpd_rw_t '/tftpboot(/.*)?'
# restorecon -R -v /tftpboot
于 2013-12-19T20:51:17.023 回答
0

Your files are labeled by 'httpd_sys_content_t' that is not acceptable label for kickstart. It looks you copied the file from an apache directory or you create the file from a web appliaction running on apache.

Relabel directory by default labels:

[root@localhost /]# restorecon -Rv /tftpboot
于 2013-11-14T06:46:40.107 回答