Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cmd:imgfetch [2016/02/17 11:26]
mcb30
cmd:imgfetch [2021/05/24 12:37]
mcb30
Line 19: Line 19:
     imgfetch http://​boot.ipxe.org/​1mb     imgfetch http://​boot.ipxe.org/​1mb
  
-=== Download and boot a Linux kernel, initrd and kernel module ​(using a script) ​===+=== Download and boot a Linux kernel, initrd and kernel module ===
  
     #!ipxe     #!ipxe
-    kernel /​boot/​vmlinuz-2.6.31+    kernel /​boot/​vmlinuz-2.6.31 ​initrd=initrd.magic
     initrd initrd.img     initrd initrd.img
     initrd /​modules/​2.6.31/​e1000.ko /​lib/​modules/​e1000.ko     initrd /​modules/​2.6.31/​e1000.ko /​lib/​modules/​e1000.ko
Line 54: Line 54:
 There is no difference between the commands ''​imgfetch'',​ ''​module'',​ and ''​initrd''​. 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. ​ For example, if you have the script+When booting a Linux kernel, ​iPXE can construct a "magic initrd"​ by injecting downloaded files into the initial RAM filesystem image. ​ Any argument supplied to the ''​initrd''​ command will be used as the pathname for that image within the ''​initrd.magic'' ​initial RAM filesystem. ​ For example, if you have the script
  
     #!ipxe     #!ipxe
     ​     ​
-    kernel /​boot/​vmlinuz-2.6.31+    kernel /​boot/​vmlinuz-2.6.31 ​initrd=initrd.magic
     initrd initrd.img     initrd initrd.img
     initrd /​initscripts/​deploy.sh /sbin/init mode=755     initrd /​initscripts/​deploy.sh /sbin/init mode=755
cmd/imgfetch.txt ยท Last modified: 2023/02/15 18:11 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.