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

Bug#133212: marked as done (busybox-static: busybox will not exec /sbin/init)



Your message dated Fri, 11 Mar 2011 16:22:30 +0300
with message-id <4D7A2216.7020401@msgid.tls.msk.ru>
and subject line Bug#133212: busybox-static: busybox will not exec /sbin/init
has caused the Debian Bug report #133212,
regarding busybox-static: busybox will not exec /sbin/init
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
133212: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=133212
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: busybox-static
Version: 1:0.60.2-3.1
Severity: normal

I'm trying to build a boot CD using initrd and busybox as a shell. The
initrd contains :

> cd initrd.mnt; find . -type f
./bin/ls
./bin/busybox
./bin/sh
./bin/echo
./bin/mount
./bin/umount
./bin/sleep
./bin/pivot_root
./linuxrc

(where all the executables are links to busybox).
Here is the file /linuxrc :

----------------------------------------------------------
#!/bin/sh

PATH=/bin

mount -t iso9660 -o ro /dev/cdroms/cdrom0 /newroot

cd newroot
pivot_root . initrd

mount -t proc proc /proc
mount -t devfs devfs /dev
mount -t tmpfs tmpfs /tmp

tar zxf tmp.tar.gz
/sbin/depmod -a

exec /sbin/init
-----------------------------------------------------------

I boot using 'init=/linuxrc' so that linuxrc gets PID 1.

/sbin/init is a real file in the new root fs - but busybox will not use
it, it will instead switch to its own version of init, hence not
recognize /etc/inittab.

Workaround : rename /sbin/init as /sbin/realinit, replace the last line
of /linuxrc by 'exec /sbin/realinit', and it works as expected.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux elbereth 2.4.17 #1 Wed Feb 6 14:28:26 CET 2002 i686
Locale: LANG=C, LC_CTYPE=C



--- End Message ---
--- Begin Message ---
Version: 1:1.17.3-8

really closing it.


--- End Message ---

Reply to: