From: Magnus Hagebris (mhagebris_at_ipdynamics.com)
Date: Sat Oct 06 2001 - 00:10:39 CEST
Message-ID: <3BBE2FDF.8010900@ipdynamics.com> Date: Fri, 05 Oct 2001 15:10:39 -0700 From: Magnus Hagebris <mhagebris@ipdynamics.com> Subject: Re: [alice] Defaultrunlevel
If you force a final reboot the system will come up in runlevel 3.
e.g.
<SYS_APPLICATION_SCRIPTS>
make_reboot
</SYS_APPLICATION_SCRIPTS>
But if using CD based installation you have to remove the CD to allow
the system to pass the lilo boot prompt, then you have to pop the CD
back in. And if you do not do it fast enough YaST/ALICE will prompt you
to select installation medium. Yep, confusing...
Using NET based installation should works fine...However I had some
problem with this. Don't really rembember what. Might be that I had the
firewall configured (blocking NFS mounts) or something else. When
booting up ALICE/YAST needs to mount the installation server once again
to fetch the ALICE scripts...
This is also very stupid, ALICE should save those locally somehow...
I guess the best thing is actually let it boot to runlevel 2 and do a
manual reboot.. or the nasty thing I did....
I used a specific scripts to force the system into runlevel 3....
<SYS_APPLICATION_SCRIPTS>
/var/adm/mount/ADD-RPM/fix_root_profile.sh
</SYS_APPLICATION_SCRIPTS>
I put this fix_root_profile under the ADD-RPM directory and the scripts
basically check what runlevel you have when first login occour and force
it to level 3.
Some part of the fix_root_profile....
#############################################
#Add the first login flag...
touch /var/state/alice_dummy
(
cat << EOF
# Appended by the ALICE Installation
# Just force to runlevel 3
old_level=\$(runlevel | awk '{print \$1}')
current_level=\$(runlevel | awk '{print \$2}')
if [ "$old_level" = "N" ]
then
#Check for runlevel 2
if [ "$current_level" = "2" ]
then
echo "It seems like this is the first time you login in.."
# To prevent recursive calls add a run_file
if [ -f /var/state/alice_dummy ];then
#first run
rm /var/state/alice_dummy
init 3
fi
fi
fi
# End append
EOF
) >> /root/.profile
############################################
So when you have installed the machine the runlevel is 'N 2' and when
you login you're executing the .profile file shown above....
OK, this is a really bad way of solving the problem, there got to be
something better. But it works... :-)
/Magnus
Reinhard Tartler wrote:
> After doing the installation with alice everythings goes fine, except that the
> system is in runlevel 2. I want the installed system to get in runlevel 3.
>
> Is this possible?
>
>
This archive was generated by hypermail 2.1.7 : Wed Jun 25 2003 - 22:19:23 CEST