Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to update documentation on ipxe.org/docs?
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
  
  kernel /boot/vmlinuz-2.6.31
  initrd initrd.img
  initrd /modules/2.6.31/e1000.ko /lib/modules/e1000.ko
  initrd /pubkeys/sshdebug.pub /root/.ssh/authorized_keys mode=0600    ## NEW
  boot

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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to update documentation on ipxe.org/docs? - soltesz - 2015-09-05 02:53



User(s) browsing this thread: 1 Guest(s)