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

Re: Netwinder d-i for lenny



* Martin Michlmayr <tbm@cyrius.com> [2008-09-02 20:03]:
> * Woody Suwalski <woody@suwalski.net> [2008-09-02 12:38]:
> > - ramdisk breaks with:
> > /sbin/init: line 31:  /lib/debian-installer/init-udev-devices: not found
> 
> It seems we need the following patch so initrds will still boot.
> Jérémy, is this correct?

OK, this updated patch is tested and works fine.  Unless there are any
objections, I'll upload this tomorrow.

Index: src/sbin/init
===================================================================
--- src/sbin/init	(revision 55526)
+++ src/sbin/init	(working copy)
@@ -20,17 +20,11 @@
 cd /mnt
 pivot_root . initrd
 mkdir proc
-if [ -x /sbin/udevd ]; then
-	/lib/debian-installer/init-udev-devices
-elif [ -d /lib/userdevfs/ ]; then
-	:
-else
-	echo "udev is missing. Giving up!" >&2
-	sleep 5000
-	exit
-fi
 mount /proc
+mkdir -p /sys
+mount /sys
+/lib/debian-installer/start-udev
 
 # Close all open files on the initrd, and run busybox init.
 debugshell "before init"
-exec /usr/sbin/chroot . /bin/busybox init < /dev/console > /dev/console 2>&1
+exec /sbin/reopen-console /usr/sbin/chroot . /bin/busybox init < /dev/console > /dev/console 2>&1

-- 
Martin Michlmayr
http://www.cyrius.com/


Reply to: