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

Re: Centris 650 Debian 10 SID Installation



On Thu, 13 Jun 2019, userm57@yahoo.com wrote:

> 
> > ... It will be interesting to see how much more quickly you can boot 
> > this system using openrc or sysvinit. (I see that the 450 seconds 
> > logged here includes the 100 second delay caused by CONFIG_CRYPTO_DH; 
> > you can avoid that by adding initcall_blacklist=dh_init to the kernel 
> > parameters.) ...
> 
> It was somewhat of a long process to switch from systemd to sysvinit. 
> Apparently, systemd has to be running for the switch to happen, so it's 
> not good enough to just boot using "init=/bin/bash" and bring up the 
> network and run "apt-get install sysvinit-core".
> 
> So I kept hitting systemd in the knees until it fell over and I could 
> log in.  The serial console always timed out, and the getty at the 
> framebuffer console was useless because of the ADB keymap issue.  But 
> eventually, after going several times back and forth between the systemd 
> installation and a backup Debian 3.1 installation to fsck the root 
> filesystem and kill off systemd parts, it eventually ran openssh server, 
> and I could log in and run the apt-get command from there.  It was slow, 
> since parts of systemd were still slugging away.
> 

One way around that might be to boot with init=/bin/sh, start sshd 
somehow, then exec /sbin/init.

> After a reboot (now into a sysvinit system), dbus seemed to hang, so I 
> disabled that in the scripts.  Not running 
> /etc/rc*.d/S01console-setup.sh and /etc/rcS.d/S03keyboard-setup.sh fixes 
> the ADB keymap issue.

OK. I guess we'll need to report a bug for the console-setup package.

> But there's still a problem, and I'll have to keep investigating.  
> Logins at the framebuffer console, serial console and ssh all hang.  
> Control-C cancels the login.  On the serial console, I see this:
> 
> -----
> Debian GNU/Linux 10 calvin ttyS0
> 
> calvin login: root
> Password:
> Last login: Thu Jun 13 12:06:39 MDT 2019 on tty1
> Linux calvin 4.19.0-5-m68k #1 Debian 4.19.37-3 (2019-05-15) m68k
> 
> The programs included with the Debian GNU/Linux system are free
> software; the exact distribution terms for each program are described in
> the individual files in /usr/share/doc/*/copyright.
> 
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> 
> -----
> 

ISTR that years ago I had to hack the bash profile scripts in /etc to 
speed this up.
 
In my QEMU VM this isn't such a problem though there is a noticible delay 
here.

On my QEMU system, strace shows that the login shell spends a lot of time 
in /etc/profile.d/bash_completion.sh and /etc/bash_completion.d before 
producing a prompt.

There are lighter alternatives such as ash, dash, mksh etc.

-- 


Reply to: