All of lore.kernel.org
 help / color / mirror / Atom feed
* I added one dracut module into initial ramdisk, but it is not called
@ 2010-06-17 12:59 Min Jun,Xi
       [not found] ` <AANLkTilYnPkMWI5kff6veRazkdLuluOmIId14JMu3eWi-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Min Jun,Xi @ 2010-06-17 12:59 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: harald-H+wXaHxf7aLQT0dZR+AlfA

Hi,

I am using the NFS directory as the root file system, and it works
now. I have worked to make the warning/error messages away during the
node is booting up.  Now, I am trying to create and add my own dracut
modules, but I find it doesn't run during the node is booting up.

I created one directory named "48xcat", and there're 5 files in it:

    "check  install  premount  prepivot  xcatroot"

All of them are simple, the contents of "install" is:
"
#!/bin/sh
    echo "installing xcat dracut modules..."
    dracut_install mount umount
    inst "$moddir/xcatroot" "/sbin/xcatroot"
    inst_hook pre-mount 10 "$moddir/premount"
    inst_hook pre-pivot 88 "$moddir/prepivot"
"
premount will mount another NFS directory to the mount point in the
file system, like this:
"
    #!/bin/sh
    echo "in pre-mouting script"
    mount 192.168.11.107:/tftpboot /.statelite/ro
"
prepivot only has one line to echo something there.

xcatroot only has several lines:
"
    #!/bin/sh
    echo "xcatroot is running..."
    #inject new exit_if_exists
    echo 'settle_exit_if_exits="--exit-if-exists=/dev/root"; rm
"$job"' > /initqueue/xcat.sh
    > /initqueue/work
"
Then, I added the module "xcat" into dracut.conf, and finally I
created the initrd.gz file by the "dracut" command, I also added
"rdshell rdinfo rdinitdebug" into the kernel commandline parameters,
however when the node was booting up, I couldn't see the scripts in my
own "xcat" module run.
Can anyone tell me what's wrong here? Thank you in advance. Is there
some naming restrictions in the module?
--
best regards,
Xi Minjun
xCAT Development Team Member in CDL,IBM
Notes ID: Min Jun Xi/China/IBM/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-25 19:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 12:59 I added one dracut module into initial ramdisk, but it is not called Min Jun,Xi
     [not found] ` <AANLkTilYnPkMWI5kff6veRazkdLuluOmIId14JMu3eWi-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-17 13:06   ` Harald Hoyer
     [not found]     ` <4C1A1DC2.5050401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-06-17 13:18       ` Min Jun,Xi
2010-06-17 13:38       ` Min Jun,Xi
2010-06-25 19:27         ` Dave Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.