|
正常启动,内核和文件系统都正常解压缩,紧接着执行linuxrc的时候出错:
kmod: failed to exec /sbin/modprobe -s -k devfs.errno=2
mount:Mounting none on /nyroot/dev failed:no such device
n pivoting..
done,
mounting /proc
-install:applet bot found
ramdisk setup complete , stage separarion..
/linuxrc:55:cannot open dev/console:no such file
Kernel panic:attempted to kill init!
附linuxrc文件(行号是我加的):
1 #!/bin/sh
2 # initrd Boot RC file
3 PATH="/bin:/sbin:/usr/bin:/usr/sbin"
4 TERM=linux
5 export PATH TERM
6 umask 022
7 /bin/busybox mkdir /nyroot
8 /bin/busybox mount -n -t tmpfs tmpfs /nyroot
9 cd nyroot
10 # copy over most of the filesystem
11 /bin/busybox echo "Copying to new filesystem."
12 for ii in /*
13 do
14 case $ii in
15 /lost+found|/nyroot|/proc|/dev)
16 ;;
17 *)
18 /bin/busybox cp -dpR $ii /nyroot/.
19 /bin/busybox echo -n $ii" "
20 esac
21 done
22 /bin/busybox echo "Done."
23 /bin/busybox mkdir initrd
24 /bin/busybox mkdir dev
25 /bin/busybox mount -t devfs none dev
26 /bin/busybox echo -n " ivoting.. "
27 /bin/busybox pivot_root . initrd
28 /bin/busybox echo "Done,"
29 cd /
30 /bin/busybox echo "Mounting: proc"
31 /bin/busybox mkdir proc
32 /bin/busybox mount -t proc /proc /proc
33 /bin/busybox --install -s
34 /bin/busybox echo "Ramdisk setup complete, stage separation.."
35 exec chroot . /bin/sh /scripts/stage2 <dev/console >dev/console 2>&1
36 echo "破破破, off bottom!??!"
另有/etc/mtab文件:
rootfs / rootfs rw 0 0
tmpfs / tmpfs rw 0 0
none /dev devfs rw 0 0
/proc /proc proc rw 0 0 |
|