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

Re: Bug#121110: boot-floppies: TFTP boot on Alpha broken



If this is the init q thing that kill syour system during an install
when running with initrd, I have a patch to busybox that
fixes it on the powerpc.
The problem is that ... when reboot.c
does 'pid_t *pid = find_pid_by_name("init");',
then there is code in find_pid_by_name that "makes sure" init is found
by passing '1' back if it couldn't find it.

This is the fix I used:

Add the comments to libbb/find_fid_by_name.c:


        if (pidList)
                pidList[i]=0;
//      else if ( strcmp(pidName, "init")==0) {
//              /* If we found nothing and they were trying to kill "init", 
//               * guess PID 1 and call it good...  Perhaps we should simply
//               * exit if /proc isn't mounted, but this will do for now. */
//              pidList=xrealloc( pidList, sizeof(pid_t));
//              pidList[0]=1;
        else {

Sorry I am too lazy to do a proper diff, but it is a small file and
an easy hack.
I am even too lazy to submit a proper bug report.

Peter

On Sat, Dec 01, 2001 at 07:37:43PM +0100, Falk Hueffner wrote:
> Adam Di Carlo <adam@onshore-devel.com> writes:
> 
> > 
> > Falk Hueffner <falk@debian.org> writes:
> > 
> > > Package: boot-floppies
> > > Version: N/A; reported 2001-11-25
> > > Severity: normal
> > > 
> > > Installing via tftpboot.img will stall at installation of libc6.1, as
> > > has been reported to debian-alpha several times,
> > > e.g. http://lists.debian.org/debian-alpha/2001/debian-alpha-200110/msg00010.html. "rgh" told me on IRC:
> > > 
> > > <rgh> mellum: re "init q", when I had that problem ia64, it was
> > >  because I forgot to boot with root=/dev/ram
> > > <rgh> mellum: without that, the kernel wants to do it's initrd magic,
> > >  and runs /linuxrc before starting sbin/init.  linuxrc is linked to
> > >  init, so effectively init gets run as pid 12 (or something > 1,
> > >  anyway)
> > > <rgh> linuxrc is run with a pid > 1, and the kernel expects that to
> > >  return before it starts init as pid 1
> > > <rgh> root=/dev/ram makes the kernel realise that the ramdisk si a
> > >  real ramdisk, and not an initrd, so it disables the running of
> > >  linuxrc
> > > 
> > > So we need to find a way to force this parameter.
> > 
> > Isn't this the same as #116829 and wasn't it fixed in sysvinit 2.84-1 ?
> 
> Hm, yes, seems to be the same problem. I'll try to find a tester,
> since netboot doesn't work for me.
> 
>         Falk
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: