linux-mips
[Top] [All Lists]

how to switch rootfs from initrd to new rootfs manualy?

To: linux-mips <linux-mips@linux-mips.org>
Subject: how to switch rootfs from initrd to new rootfs manualy?
From: zhuzhenhua <zzh.hust@gmail.com>
Date: Wed, 28 Feb 2007 21:57:08 +0800
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D0tRYFshwY+F7t0hE1K/rCMG+k/oGbtmfkmlrG65XmdfZerSmTm9PNZI2PLInASTaexpy+8OnLLse4C3Xok0dCPD/DuSoEv/we7YhfHMJFfZQ3Mv/rvKmLy+42APPpFS9bZgRBGJ9XRii4PW/5Xhtniena8UGX8+EIppzaUOf1A=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aA2kV+IuhyEijSJ6rAF6QG+qt6jYIcQd+/B408tXLbTxhD8ptpBlTq6zKLASymdYgWFs5v83Aa5dK2TVD9Bgksy7ryB6Si14fchC7a71dKa8zQFXpehY8pQBQJ3X+2qO5MHt4jT+HuFQn4xJ1nQcvLaDaLIbkFUgJoUwndyaEOM=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
i used to switch rootfs from initrd to nfs by use "pivot_root" and
"exec chroot" with kernel cmdline having "init=/linuxrc".
But if i do not set "init=/linuxrc", and bootup with the ramdisk as
rootfs. after that, i manualy execute "pivot_root" and "exec chroot"
etc. it seems switching rootfs umcompletely. the /etc/init.d/rcS is
not executed while "exec chroot . /sbin/init <dev/console >dev/console
2>&1".
does anyone have some similiar experience ?

thanks for any hints

Best Regards

zhuzhenhua

<Prev in Thread] Current Thread [Next in Thread>
  • how to switch rootfs from initrd to new rootfs manualy?, zhuzhenhua <=