LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-26-2014, 01:23 PM   #16
PeterSteele
Member
 
Registered: Jun 2012
Posts: 264

Original Poster
Rep: Reputation: Disabled

I finally resolved this issue, and as usual it's something I should have discovered much sooner. When a CentOS install is done, even if you specify that selinux is disabled in the kickstart file, the .autorelabel file is created when the system is first booted. This is done in /etc/rc.sysinit. This makes the system attempt a relabel process the next time it is booted, again even if selinux is disabled (the boot logic only checks for the presence of the directory /etc/selinux instead of checking if selinux is enabled in /etc/selinux/config).

So, to resolve my issue of unwanted relabels/reboots, I created a custom /etc/rc.local that does a

rm -f /.autorelabel

This gets run after rc.sysinit, ensuring that the .autorelabel file that gets created is removed shortly afterwards.

A simple solution to the problem. In my opinion this is a bug in the CentOS startup logic...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hdd relabeling dev/sdr to dev/sdr1 Jan Tanjo Linux - Hardware 1 02-06-2013 07:25 AM
How to prevent ftp from 1 IP zergling Linux - Networking 5 12-01-2009 01:55 PM
prevent using server IP tieuquaybk Linux - Networking 2 01-16-2007 03:47 PM
Help to prevent a divorce!!! Paulsuk Linux - Software 5 11-20-2005 02:24 AM
prevent an IP to get out? jimval7 Linux - Security 16 05-09-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration