All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Min Jun,Xi" <xi.minjun-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: I added one dracut module into initial ramdisk, but it is not called
Date: Thu, 17 Jun 2010 15:06:10 +0200	[thread overview]
Message-ID: <4C1A1DC2.5050401@redhat.com> (raw)
In-Reply-To: <AANLkTilYnPkMWI5kff6veRazkdLuluOmIId14JMu3eWi-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 06/17/2010 02:59 PM, Min Jun,Xi wrote:
> 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/

what's the output of:
$ lsinitrd <image file> | grep xcat

and please rename "premount" to something like "xcat-premount"

then you can do in the dracut shell after booting with "rdinitdebug":

$ dmesg |grep xcat

  parent reply	other threads:[~2010-06-17 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C1A1DC2.5050401@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=xi.minjun-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.