[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] pivot_root & exec normal init off initrd
From: Martin Hicks <mort () wildopensource ! com>
Date: 2003-11-21 14:22:03
[Download RAW message or body]
Hi,
I've done this before, but it doesn't seem to be working for me with my
current configuration. The basic idea is that i boot off an initrd
ramdisk, do some initial setup, mount the real root partition,
pivot_root and exec the real /sbin/init.
The machine is debian unstable on ia64. Here is my linuxrc script:
#!/bin/sh
echo "Mounting /proc"
mkdir /proc
mount -t proc none /proc
echo "Mounting /dev/sda2 as the real root partition"
mount /dev/sda2 /root
cd /root
pivot_root . oldroot
cd /
exec /usr/sbin/chroot / /sbin/init </dev/console >/dev/console 2>&1
I've also stuck "/bin/sh" as the first line of the linuxrc and typed the
commands in by hand. The result is that I get:
Usage: init 0123456SsQqAaBbCcUu
Please press Enter to activate this console.
Any ideas why this is happening? Have I missed a step in this setup?
Thanks
mh
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 613-266-2296
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic