How to pass options to the booted system via PXECONFIG script
|
2013-11-03, 22:40
Post: #3
|
|||
|
|||
RE: How to pass options to the booted system via PXECONFIG script
Not sure why you'd need an external file for that. Just add them to the imgargs line like this my_ip=${ip}. Then you can just read the value out of /proc/cmdline once Linux has booted. Since you already control /etc/rc.local it shouldn't be too hard. Remember you can also add a custom file to the initrd by doing something like this:
Code: kernel nfs://192.168.13.5/var/www/nfsshare/casper/vmlinuz The specific "chip" file for your network card would then be available inside Linux as /tmp/chip.txt after the system is booted. If you point it at a web server instead of nfs you could even dynamically generate it with a simple CGI script. Lots of options available. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to pass options to the booted system via PXECONFIG script - knatesan - 2013-11-01, 20:16
RE: How to pass options to the booted system via PXECONFIG script - knatesan - 2013-11-01, 22:19
RE: How to pass options to the booted system via PXECONFIG script - robinsmidsrod - 2013-11-03 22:40
RE: How to pass options to the booted system via PXECONFIG script - knatesan - 2013-11-07, 20:35
RE: How to pass options to the booted system via PXECONFIG script - robinsmidsrod - 2013-11-08, 12:57
RE: How to pass options to the booted system via PXECONFIG script - knatesan - 2013-11-13, 01:35
RE: How to pass options to the booted system via PXECONFIG script - robinsmidsrod - 2013-11-14, 09:13
|
User(s) browsing this thread: 4 Guest(s)