摘要: #!/bin/sh echo "init..." mount -t proc proc /proc mount -t sysfs sysfs /sys mdev -s newroot=`findfs LABEL=ROOT` cleanmntdir() { rm -rf /mnt/* } copyroot() { FILES=`ls /` for F in $FILES do [ $F !... 阅读全文
posted @ 2011-07-02 15:39 katago 阅读(331) 评论(0) 推荐(0)
摘要: ~ # switch_root BusyBox v1.18.3 (2011-02-23 16:15:41 CST) multi-call binary. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS] Free initramfs and switch to another root fs: chroot to NEW_R... 阅读全文
posted @ 2011-07-02 15:38 katago 阅读(14098) 评论(0) 推荐(0)