From: Rene Salmon <[EMAIL PROTECTED]>
    Date: Thu, 07 Dec 2006 15:42:14 -0600
    
    Yes! that would be very helpful and greatly appreciated.

Here you go.  We use pxeboot, which is documented elsewhere.  I would think
you could use this recipe for just about anything that allows for booting a
kernel with an initrd.  We have multiple rootfs images in the lustrefs, this
particular version of the script is set up to mount number 3, thus the magic
with the mount bind.

Sorry for the terseness, I'm hip deep in another firedrill and don't have time
for lots of detail now.  If there's a specific question, fling it at me and
I'll answer if I can.


[EMAIL PROTECTED] rootfs # gunzip pxeinitrd.img.gz
[EMAIL PROTECTED] rootfs # mount -o loop pxeinitrd.img /mnt/initrd
[EMAIL PROTECTED] rootfs # ls -lR /mnt/initrd
/mnt/initrd:
total 45
drwxr-xr-x  2 root root  2048 Oct 10 16:25 bin
drwxr-xr-x  2 root root  1024 Dec 18  2003 dev
drwxr-xr-x  2 root root  1024 Oct 10 16:09 etc
drwxr-xr-x  3 root root  1024 Oct 10 15:07 lib
drwxr-xr-x  2 root root  1024 Oct 10 15:37 lib64
-rwxr-xr-x  1 root root  3727 Nov 10 11:27 linuxrc
-rwxr-xr-x  1 root root  3871 Feb 20  2006 linuxrc.lustre-working
-rwxr-xr-x  1 root root  3670 Feb 17  2006 linuxrc.nfs
-rwxr-xr-x  1 root root  3727 Nov 10 07:54 linuxrc~
drwx------  2 root root 12288 Mar 16  2006 lost+found
drwxr-xr-x  2 root root  1024 Dec 17  2003 proc
lrwxrwxrwx  1 root root     3 Mar 16  2006 sbin -> bin
-rwxr-xr-x  1 root root  6800 Feb 20  2006 scx-client.sh
drwxr-xr-x  2 root root  1024 Dec 17  2003 sysroot
drwxr-xr-x  2 root root  1024 Dec 18  2003 tmp
drwxr-xr-x  2 root root  1024 Dec 18  2003 usr

/mnt/initrd/bin:
total 2111
lrwxrwxrwx  1 root root       7 Mar 16  2006 [ -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ash -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 basename -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 bunzip2 -> busybox
-rwxr-xr-x  1 root root 1057048 Mar 17  2006 busybox
-rwxr-xr-x  1 root root  819544 Dec 18  2003 busybox.1.00-pre4
lrwxrwxrwx  1 root root       7 Mar 16  2006 bzcat -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 cat -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 chgrp -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 chmod -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 chown -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 chroot -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 clear -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 cp -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 cut -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 date -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 dd -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 df -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 dirname -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 du -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 echo -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 egrep -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 env -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 false -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 fgrep -> busybox
-rwxr-xr-x  1 root root   52348 Oct 25  2003 find
lrwxrwxrwx  1 root root       7 Mar 16  2006 free -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 freeramdisk -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 grep -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 gunzip -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 halt -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 head -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 hostname -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 id -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ifconfig -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 init -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 insmod -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ip -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ipcalc -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 iproute -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 kill -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 killall -> busybox
-rwxr-xr-x  1 root root   33765 Mar 17  2006 llmount
lrwxrwxrwx  1 root root       7 Mar 16  2006 ln -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 losetup -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ls -> busybox
-rwxr-xr-x  1 root root   36224 Dec  8  2002 lspci
lrwxrwxrwx  1 root root       7 Mar 16  2006 mesg -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 mkdir -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 mknod -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 mkswap -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 mktemp -> busybox
-rwxr-xr-x  1 root root      74 Feb 20  2006 modprobe
lrwxrwxrwx  1 root root       7 Mar 16  2006 more -> busybox
-rws--x--x  1 root root   89289 Sep 28 06:27 mount
-rwxr-xr-x  1 root root   39558 Sep 28 15:56 mount.lustre
lrwxrwxrwx  1 root root       7 Mar 16  2006 mv -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 nslookup -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 pidof -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ping -> busybox
-rwxr-xr-x  1 root root    9139 Sep 28 06:27 pivot_root
lrwxrwxrwx  1 root root       7 Mar 16  2006 poweroff -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 ps -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 pwd -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 readlink -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 reboot -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 reset -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 rm -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 rmdir -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 route -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 sed -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 sh -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 sleep -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 sort -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 sync -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 tail -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 tar -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 test -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 tftp -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 touch -> busybox
-rwxr-xr-x  1 root root      97 Dec 18  2003 trim
lrwxrwxrwx  1 root root       7 Mar 16  2006 true -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 tty -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 udhcpc -> busybox
-rwxr-xr-x  1 root root    2349 Dec 18  2003 udhcpc.script
lrwxrwxrwx  1 root root       7 Mar 16  2006 umount -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 uname -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 uniq -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 wget -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 which -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 whoami -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 yes -> busybox
lrwxrwxrwx  1 root root       7 Mar 16  2006 zcat -> busybox

/mnt/initrd/dev:
total 0
crw-r--r--  1 root root 5, 1 Dec 21  2003 console
crw-r--r--  1 root root 1, 3 Dec 21  2003 null
brw-r--r--  1 root root 1, 1 Dec 21  2003 ram
crw-r--r--  1 root root 4, 0 Dec 21  2003 systty
crw-r--r--  1 root root 4, 1 Dec 21  2003 tty1
crw-r--r--  1 root root 4, 2 Dec 21  2003 tty2
crw-r--r--  1 root root 4, 3 Dec 21  2003 tty3
crw-r--r--  1 root root 4, 4 Dec 21  2003 tty4
crw-r--r--  1 root root 1, 9 Dec 21  2003 urandom

/mnt/initrd/etc:
total 3
-rw-r--r--  1 root root    6 Oct 10 16:09 ld.so.conf
-rw-r--r--  1 root root 1142 Dec 25  2002 nsswitch.conf

/mnt/initrd/lib:
total 1892
-rwxr-xr-x  1 root root  107716 Oct 27  2003 ld-2.3.2.so
lrwxrwxrwx  1 root root      11 Mar 16  2006 ld-linux.so.2 -> ld-2.3.2.so
-rwxr-xr-x  1 root root 1573232 Oct 27  2003 libc-2.3.2.so
lrwxrwxrwx  1 root root      13 Mar 16  2006 libc.so.6 -> libc-2.3.2.so
-rwxr-xr-x  1 root root   93028 Oct 27  2003 libnsl-2.3.2.so
lrwxrwxrwx  1 root root      15 Mar 16  2006 libnsl.so.1 -> libnsl-2.3.2.so
-rwxr-xr-x  1 root root   18316 Oct 27  2003 libnss_dns-2.3.2.so
lrwxrwxrwx  1 root root      19 Mar 16  2006 libnss_dns.so.2 -> 
libnss_dns-2.3.2.so
-rwxr-xr-x  1 root root   51152 Oct 27  2003 libnss_files-2.3.2.so
lrwxrwxrwx  1 root root      21 Mar 16  2006 libnss_files.so.2 -> 
libnss_files-2.3.2.so
-rwxr-xr-x  1 root root   78048 Oct 27  2003 libresolv-2.3.2.so
lrwxrwxrwx  1 root root      18 Mar 16  2006 libresolv.so.2 -> 
libresolv-2.3.2.so
drwxr-xr-x  3 root root    1024 Oct 17 11:43 modules

/mnt/initrd/lib/modules:
total 1
drwxr-xr-x  3 root root 1024 Oct 17 04:28 2.6.15-sc-lustre-1.6b5-devo

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo:
total 42
lrwxrwxrwx  1 root root    42 Oct 17 11:43 build -> 
/usr/src/linux-2.6.15-sc-lustre-1.6b5-devo
drwxr-xr-x  4 root root  1024 Oct 17 09:23 kernel
-rw-r--r--  1 root root    45 Oct 17 04:28 modules.alias
-rw-r--r--  1 root root    69 Oct 17 04:28 modules.ccwmap
-rw-r--r--  1 root root  6400 Oct 17 04:28 modules.dep
-rw-r--r--  1 root root    73 Oct 17 04:28 modules.ieee1394map
-rw-r--r--  1 root root   132 Oct 17 04:28 modules.inputmap
-rw-r--r--  1 root root    81 Oct 17 04:28 modules.isapnpmap
-rw-r--r--  1 root root    99 Oct 17 04:28 modules.pcimap
-rw-r--r--  1 root root 26120 Oct 17 04:28 modules.symbols
-rw-r--r--  1 root root   189 Oct 17 04:28 modules.usbmap
lrwxrwxrwx  1 root root    42 Oct 17 11:43 source -> 
/usr/src/linux-2.6.15-sc-lustre-1.6b5-devo

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel:
total 2
drwxr-xr-x  3 root root 1024 Oct 17 09:23 fs
drwxr-xr-x  4 root root 1024 Oct 17 09:23 net

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs:
total 1
drwxr-xr-x  2 root root 1024 Oct 17 09:23 lustre

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre:
total 34163
-rw-r--r--  1 root root  358862 Oct 17 09:23 fsfilt_ldiskfs.ko
-rw-r--r--  1 root root 2727190 Oct 17 09:23 ldiskfs.ko
-rw-r--r--  1 root root 2595268 Oct 17 09:23 lov.ko
-rw-r--r--  1 root root 1334772 Oct 17 09:23 lquota.ko
-rw-r--r--  1 root root 4083678 Oct 17 09:23 lustre.ko
-rw-r--r--  1 root root  772918 Oct 17 09:23 lvfs.ko
-rw-r--r--  1 root root 1287666 Oct 17 09:23 mdc.ko
-rw-r--r--  1 root root 3458326 Oct 17 09:23 mds.ko
-rw-r--r--  1 root root  336344 Oct 17 09:23 mgc.ko
-rw-r--r--  1 root root 1219402 Oct 17 09:23 mgs.ko
-rw-r--r--  1 root root 5309336 Oct 17 09:23 obdclass.ko
-rw-r--r--  1 root root  815425 Oct 17 09:23 obdecho.ko
-rw-r--r--  1 root root 1775738 Oct 17 09:23 obdfilter.ko
-rw-r--r--  1 root root  974242 Oct 17 09:23 osc.ko
-rw-r--r--  1 root root  634238 Oct 17 09:23 ost.ko
-rw-r--r--  1 root root 7130717 Oct 17 09:23 ptlrpc.ko

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net:
total 2
drwxr-xr-x  2 root root 1024 Oct 17 09:14 bridge
drwxr-xr-x  2 root root 1024 Oct 17 09:23 lustre

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/bridge:
total 59
-rw-r--r--  1 root root 59143 Oct 17 09:14 bridge.ko

/mnt/initrd/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre:
total 5316
-rw-r--r--  1 root root  902540 Oct 17 09:23 ksocklnd.ko
-rw-r--r--  1 root root 2198509 Oct 17 09:23 libcfs.ko
-rw-r--r--  1 root root 2315387 Oct 17 09:23 lnet.ko

/mnt/initrd/lib64:
total 5676
-rwxr-xr-x  1 root root  113681 Feb 20  2006 ld-2.3.5.so
-rwxr-xr-x  1 root root  134718 Sep 28 04:52 ld-2.4.so
lrwxrwxrwx  1 root root       9 Oct 10 15:37 ld-linux-x86-64.so.2 -> ld-2.4.so
lrwxrwxrwx  1 root root      13 Oct 10 15:37 libblkid.so -> libblkid.so.1
lrwxrwxrwx  1 root root      15 Oct 10 15:37 libblkid.so.1 -> libblkid.so.1.0
-rwxr-xr-x  1 root root   48415 Sep 28 06:26 libblkid.so.1.0
-rwxr-xr-x  1 root root 1256800 Feb 20  2006 libc-2.3.5.so
-rwxr-xr-x  1 root root 1512019 Sep 28 04:52 libc-2.4.so
lrwxrwxrwx  1 root root      11 Oct 10 15:37 libc.so.6 -> libc-2.4.so
-rwxr-xr-x  1 root root   23248 Sep  1  2005 libcrypt-2.3.5.so
-rwxr-xr-x  1 root root   29417 Sep 28 04:52 libcrypt-2.4.so
lrwxrwxrwx  1 root root      15 Oct 10 15:37 libcrypt.so.1 -> libcrypt-2.4.so
lrwxrwxrwx  1 root root      11 Mar 17  2006 libgpm.so -> libgpm.so.1
lrwxrwxrwx  1 root root      16 Mar 17  2006 libgpm.so.1 -> libgpm.so.1.19.0
-rwxr-xr-x  1 root root   24264 Jul 26  2005 libgpm.so.1.19.0
-rwxr-xr-x  1 root root  570832 Sep  1  2005 libm-2.3.5.so
-rwxr-xr-x  1 root root  415072 Sep 28 04:52 libm-2.4.so
lrwxrwxrwx  1 root root      11 Oct 10 15:37 libm.so.6 -> libm-2.4.so
lrwxrwxrwx  1 root root      15 Oct 10 15:37 libncurses.so -> libncurses.so.5
lrwxrwxrwx  1 root root      17 Oct 10 15:37 libncurses.so.5 -> 
libncurses.so.5.5
-rwxr-xr-x  1 root root  375232 Jul 28  2005 libncurses.so.5.4
-rwxr-xr-x  1 root root  407583 Sep 28 04:55 libncurses.so.5.5
-rwxr-xr-x  1 root root   32008 Nov 18  2005 libnss_compat-2.3.5.so
-rwxr-xr-x  1 root root   40650 Sep 28 04:52 libnss_compat-2.4.so
lrwxrwxrwx  1 root root      20 Oct 10 15:37 libnss_compat.so.2 -> 
libnss_compat-2.4.so
-rwxr-xr-x  1 root root   19176 Nov 18  2005 libnss_dns-2.3.5.so
-rwxr-xr-x  1 root root   25049 Sep 28 04:52 libnss_dns-2.4.so
lrwxrwxrwx  1 root root      17 Oct 10 15:37 libnss_dns.so.2 -> 
libnss_dns-2.4.so
-rwxr-xr-x  1 root root   44392 Nov 18  2005 libnss_files-2.3.5.so
-rwxr-xr-x  1 root root   55726 Sep 28 04:52 libnss_files-2.4.so
lrwxrwxrwx  1 root root      19 Oct 10 15:37 libnss_files.so.2 -> 
libnss_files-2.4.so
lrwxrwxrwx  1 root root      16 Oct 10 15:37 libreadline.so -> libreadline.so.5
lrwxrwxrwx  1 root root      18 Oct 10 15:37 libreadline.so.5 -> 
libreadline.so.5.1
-rwxr-xr-x  1 root root  234520 Jul 26  2005 libreadline.so.5.0
-rwxr-xr-x  1 root root  291035 Sep 28 05:42 libreadline.so.5.1
-rwxr-xr-x  1 root root   83472 Sep 28 04:52 libresolv-2.4.so
lrwxrwxrwx  1 root root      16 Oct 10 15:37 libresolv.so.2 -> libresolv-2.4.so
lrwxrwxrwx  1 root root      14 Oct 10 14:45 libuuid.so.1 -> libuuid.so.1.2
-rwxr-xr-x  1 root root   17049 Sep 28 06:26 libuuid.so.1.2

/mnt/initrd/lost+found:
total 0

/mnt/initrd/proc:
total 0

/mnt/initrd/sysroot:
total 0

/mnt/initrd/tmp:
total 0

/mnt/initrd/usr:
total 0
lrwxrwxrwx  1 root root 6 Mar 16  2006 bin -> ../bin
lrwxrwxrwx  1 root root 7 Mar 16  2006 sbin -> ../sbin
[EMAIL PROTECTED] rootfs # 
[EMAIL PROTECTED] rootfs # cat /mnt/initrd/linuxrc
#!/bin/sh

# get the infrastructure for lustre set up.
# these modules are coming out of the initrd
# we probably don't need all of these to be a client, figure out later

# supposedly we don't need to hand-load these modules any more
 echo "Loading lustre modules"
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/libcfs.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/libcfs.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/lnet.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/lnet.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/ksocklnd.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/net/lustre/ksocklnd.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lvfs.ko"
  /sbin/insmod /lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lvfs.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/obdclass.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/obdclass.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/ptlrpc.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/ptlrpc.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/osc.ko"
  /sbin/insmod /lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/osc.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lov.ko"
  /sbin/insmod /lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lov.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/mdc.ko"
  /sbin/insmod /lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/mdc.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/mgc.ko"
  /sbin/insmod /lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/mgc.ko
echo "  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lustre.ko"
  /sbin/insmod 
/lib/modules/2.6.15-sc-lustre-1.6b5-devo/kernel/fs/lustre/lustre.ko

echo "Mounting Lustre at /sysroot"
mount -n -t proc /proc /proc

# 
# It looks like at least for now, we need to create enough in
# /etc/hosts to allow for referring to all the components of
# the lusterfs by name.  Later, if we can figure out how to 
# make dns work, this can go away.
#
echo -e "10.2.2.21 gsrv021" > /etc/hosts
echo -e "10.2.2.22 gsrv022" >> /etc/hosts
echo -e "10.2.2.23 gsrv023" >> /etc/hosts
echo -e "10.2.2.24 gsrv024" >> /etc/hosts
echo -e "10.2.2.27 gsrv027" >> /etc/hosts
echo -e "10.2.2.28 gsrv028" >> /etc/hosts
echo -e "10.2.2.29 gsrv029" >> /etc/hosts
echo -e "10.2.2.30 gsrv030" >> /etc/hosts
#
# now actually mount the fs
#

LD_LIBRARY_PATH=/lib64
export LD_LIBRARY_PATH

#
# NB!  This must be invoked as /sbin/mount, not just mount.  Not sure why...
#
/sbin/mount -t lustre gsrv022:/scx1 /sysroot

umount /proc

# when we thought we could use mount bind, we did it this way.  need to 
# try it again...
# [Later] it works after all.
echo "Creating mount binding"
mkdir -p /mnt
mount -o bind /sysroot/rootfs/3 /mnt

echo "Pivoting to new root"
# cd /sysroot
# mkdir -p initrd
# pivot_root . /sysroot/initrd

cd /mnt
mkdir -p initrd
pivot_root . /mnt/initrd

#
# run the script that straightens out /var etc
#
echo "Populating /var"
sh /var_populate.sh

echo "Starting init"

# something's still not right, we seem to need a sleep here????
sleep 1
exec chroot . sh -c 'exec /sbin/init' </dev/console >/dev/console 2>&1
[EMAIL PROTECTED] rootfs # 

_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss

Reply via email to