Technical article 105591

How is /etc/inittab affected by a kernel relink?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I find that when I relink the kernel, the previous changes I have
have made to the inittab file are undone.  What causes this?  How
can I stop this from happening?

Cause

When the UNIX kernel is relinked, a new inittab file may be
created.  The kernel can be rebuilt either from the graphical/
menu interface (scoadmin/sysadmsh), or directly by running
/etc/conf/cf.d/link_unix.  The link_unix script calls
/etc/conf/bin/idbuild, which in turn calls idmkenv, which
queries whether or not the kernel environment should be
rebuilt.  If your answer is yes, then idmknod and idmkinit
are called.  It is the idmkinit that re-creates the inittab
file from base files in the LINK kit.  Note that another
instance of inittab being re-created is if the LINK kit is
removed and reinstalled.

Solution

Every time you modify /etc/inittab, you should also update
the corresponding entries in the LINK kit's associated base
files.  If you modify a line in inittab, you will also need
to update one of the following files:

/etc/conf/cf.d/init.base /etc/conf/init.d/sio /etc/conf/init.d/scohttp /etc/conf/init.d/scologin <or> any other 3rd party file in the /etc/conf/init.d directory

Rather than making the changes in two places, you may desire just to make the changes to the base file(s), and then create a new inittab manually by either running idmkinit, or with this simple command:

cat /etc/conf/cf.d/init.base  /etc/conf/init.d/*  > /etc/inittab
NOTE:     "idmkenv" will also copy /etc/inittab to /etc/inittab+ to preserve a
          backup.

See also

Manual pages: idbuild(ADM), idmkenv(ADM), idmkinit(ADM), inittab(F)

ta106104, "How do I remove and reinstall the LINK package in SCO XENIX?".

ta103979, "Remove and reinstall Link kit for SCO UNIX Version 4.2 and earlier."

From the Xinuos technical article database, record 105591. Reproduced with permission. The original is at www.sco.com/ta/105591, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.