How to update documentation on ipxe.org/docs?
|
2015-09-04, 17:35
Post: #1
|
|||
|
|||
How to update documentation on ipxe.org/docs?
Hello, I would like to update the "Notes" section of http://ipxe.org/cmd/imgfetch.
Specifically, I would like to add a clarifying comment that when the "pathname" argument is given to initrd that all subdirectories of the path must already exist for the file to be available at run time (i.e. subdirectories are not created automatically). Also, I would like to add a comment describing the "mode=" option to initrd files. This is helpful for introducing custom init scripts that must be executable. I tried to register on the ipxe.org wiki but, it always reports a CAPTCHA error even though I'm sure I was entering the correct value. What can I do differently? Thank you! |
|||
2015-09-04, 23:06
Post: #2
|
|||
|
|||
RE: How to update documentation on ipxe.org/docs?
If you're having problems to register on the wiki and write it up, you can always write the exact literal text you want to add to the page here, and we'll get one of the wiki admins to add it in as soon as possible.
|
|||
2015-09-05, 02:53
Post: #3
|
|||
|
|||
RE: How to update documentation on ipxe.org/docs?
These are my suggestions for updating "Notes" section in http://ipxe.org/cmd/imgfetch. Changes are in bold or suffixed with "## NEW". There is no need to keep this formatting.
How does it look? Refinements are welcome. This information would have helped me. -- There is no difference between the commands imgfetch, module, and initrd. When booting a Linux kernel, any argument supplied to the initrd command will be used as the pathname for that image within the initial RAM filesystem. The initrd command also supports a mode= option for setting the permissions on a file added with the pathname argument. For example, if you have the script Code: #!ipxe then the file initrd.img will be treated as a normal initramfs filesystem image, and the file e1000.ko will appear as an extra file /lib/modules/e1000.ko within this filesystem. The file authorized_keys will also appear with the specified mode. Every directory in the pathname must already exist in the original initrd.img for the file to be accessible after boot because iPXE does not create the directory hierarchy for a pathname argument. |
|||
2015-09-07, 13:02
Post: #4
|
|||
|
|||
RE: How to update documentation on ipxe.org/docs?
(2015-09-05 02:53)soltesz Wrote: When booting a Linux kernel, any argument supplied to the initrd command will be used as the pathname for that image within the initial RAM filesystem. The initrd command also supports a mode= option for setting the permissions on a file added with the pathname argument. For example, if you have the script Thank you for the suggestion. I think it could benefit from being made simpler: - "The initrd command also supports..." sentence could be eliminated completely: it adds complexity before the example that many users will simply not need to care about. I try throughout the documentation to introduce the simple case first. The fact that the subsequent example includes a "mode=" argument is sufficient to illustrate the point: I don't think it needs to be introduced ahead of time. - The phraseology could be more consistent, e.g. "..then the file initrd.img will be treated as a normal initramfs filesystem image, the file e1000.ko will appear as an extra file /lib/modules/e1000.ko within this filesystem, and the file sshdebug.pub will appear as an extra file /root/.ssh/authorized_keys within this filesystem." There is no functional difference between the e1000.ko and authorized_keys files, so there should be no difference in the way they are described. - I would prefer an example of a file which is likely to exist within a random initrd.img that anyone might create. I chose /lib/modules for the original example since that directory is highly likely to exist in any initrd.img. Many initrd's will not have a /root/.ssh directory. Thanks, Michael |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)