Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bigpcman on June 11, 2009, 04:59:51 PM

Title: Boot sequence tc / mc - tc-config the only difference?
Post by: bigpcman on June 11, 2009, 04:59:51 PM
I think I can now follow the tinycore boot sequence:

init -> inittab -> init.d/rcS -> tc-config -> init -> /root/.profile -> /home/tc/.profile -> /usr/bin/startx  -> ( xsetup.sh) -> /home/tc/.xsession -> Xvesa, jwm & wbar
                                                                                                                                
It looks like microcore follows the same boot sequence as tc and everything downstream of tc-config execution is the same as tinycore. Is this basically correct? Of course there are tests along the way to avoid starting up the X environment based on a variety of "status states".
Title: Re: Boot sequence tc / mc - tc-config the only difference?
Post by: bigpcman on June 11, 2009, 10:08:10 PM
Building upon my previous post I'm wondering why the following difference in code is necessary between tc and mc in tc-config? I'm trying to dig in deeper little by little.

Code: [Select]
[tc]
echo "$USER" > /etc/sysconfig/tcuser
if [ -n "$SUPERUSER" ]; then
   touch /etc/sysconfig/superuser
else
   sed -i 's/root/'"$USER"'/' /etc/inittab
fi
mkdir -p /home/"$USER"

Code: [Select]
[mc]
echo "$USER" > /etc/sysconfig/tcuser
mkdir -p /home/"$USER"
Title: Re: Boot sequence tc / mc - tc-config the only difference?
Post by: roberts on June 11, 2009, 10:31:56 PM
I am preparing for future capabilites. Not currently recognized. No harm. No foul.
Title: Re: Boot sequence tc / mc - tc-config the only difference?
Post by: bigpcman on June 11, 2009, 10:38:51 PM
I am preparing for future capabilites. Not currently recognized. No harm. No foul.

... and they will be wonderful !