Re: [Q] pivot_root and initrd

From: H. Peter Anvin (hpa@zytor.com)
Date: Tue Oct 23 2001 - 16:06:54 EST


Richard B. Johnson wrote:

>
> Presently, when /initrd/{ash.static} runs off the end of the
> /initrd/linuxrc script, the kernel tries to mount the root
> defined for LILO. So I add some program that executes 'pivot-root'
> instead of just letting the script run off the end?
>

You do something like:

cd /newroot
pivot_root /newroot /newroot/oldroot
exec /sbin/init < /dev/console > /dev/console 2>&1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 23 2001 - 21:00:41 EST