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

Bug#193951: linuxrc: should NOT exec /sbin/init



Package: rootskel
Version: 0.29; not installed; reported 2003-05-20
Severity: critical
Tags: patch
Justification: breaks the whole system

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

The recent change to /linuxrc to make it exec /sbin/init breaks
debian-installer.  I get a kernel panic, using the d-i netboot image
from 2003-05-19 that includes the changed /linuxrc, when trying to run
init.  Per Matt Kraai, this is because busybox does not like to be
called as /sbin/init UNLESS it is as PID 1.  

The following patch fixes linuxrc to allow the installer to boot.

Joe Nahmias, DD wannabe


- --- rootskel-0.29/src/linuxrc.orig	2003-05-03 12:48:00.000000000 -0400
+++ rootskel-0.29/src/linuxrc	2003-05-20 00:45:08.000000000 -0400
@@ -9,4 +9,6 @@
 mount -t proc proc proc
 mount -t devfs devfs dev
 # Close all open files on the initrd, and run busybox init.
- -exec chroot . /sbin/init <dev/console >dev/console 2>&1
+rm -f linuxrc # this program
+ln -s /sbin/init linuxrc
+exec chroot . /linuxrc <dev/console >dev/console 2>&1


- -- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux a750.nahmias.net 2.4.20 #1 Thu Jan 9 11:22:09 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+ybPaKl23+OYWEqURAqSsAJwM9zhUte6EChqhY/y0g8tIJHtbGACeKZoS
ZnC0h3VX+Lj/jU10T37C8Vo=
=HGY2
-----END PGP SIGNATURE-----



Reply to: