[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bootmisc.sh // Re: Test of LTSP diskless workstation - boots after 5 min 55 sec



Hi Petter,

thank you for this interesting insights!
I wasn't aware that ldm was replaced by kdm by default.

Am Mittwoch, 2. Dezember 2009 schrieb Petter Reinholdts
>Next, /var/run/utmp is missing.  /etc/rcS.d/K*bootmisc.sh need to be
>changed to /etc/rcS.d/S*bootmisc.sh (and update-rc.d need to be run to
>reorder the boot), to make sure it is created at boot.

Could bootmisc.sh be an apt place to start (now Josè's) killer script?

>Third, kdm was not installed in the LTSP chroot, and thus the diskless
>workstations executed ldm and not kdm.  I have no idea why, but I
>installed it.  Renamed rc3.d/S??ltsp-client-core to
>K??ltsp-client-core to disable kdm and reordered the boot to make sure
>only kdm start in runlevel 3.

Just wondering: disable kdm?

I had a look at  /opt/ltsp/i386/etc/rc3.d/S20ltsp-client-core 
and suspect that this (conditioned) block of code causes a 30+ seconds 
hang when splash is enabled on our system:

>L61:  if $usplash && [ "$orig_console" != serial ]; then
>       # Wait a short while for the active console to change, to
>       # avoid visible console noise from later init scripts. i=0
>       while [ "$(fgconsole)" = "$orig_console" ]; do
>           i="$(($i + 1))"
>           if [ "$i" -gt 5 ]; then
>               break
>           fi
>           sleep 1
>       done
>   fi

Finally, I wonder how much time & other ressources it takes to open 
12(!) terminals:

>L49:    for screen in 01 02 03 04 05 06 07 08 09 10 11 12; do
>            eval num=\$SCREEN_$screen
>            if [ -n "$num" ]; then
>                start-stop-daemon --start -b --exec   \
>                                  /usr/share/ltsp/screen_s
>            fi
>        done

Thanks
Regards
Ralf


Reply to: