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/inittabNOTE: "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."