Unix/Linux Go Back    


Boot Loaders Discuss GRUB, BURG, UEFI, GPT, Mac EFI, GRUB2 and other topics about boot loaders.

PXE boot not taking the init= option

Boot Loaders


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-03-2010   -   Original Discussion by learn more
learn more's Unix or Linux Image
learn more learn more is offline
Registered User
 
Join Date: Jul 2009
Last Activity: 7 December 2010, 1:03 PM EST
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
PXE boot not taking the init= option

Hi Experts,

I am doing PXE boot for my GNU/Linux device and pxelinux.0 loads the kernel as well as initrd images I have mentioned in the config file but it looks like it is not considering the init= option. Instead it starts the default INIT program.

I wanted my customized init program to be called instead of default INIT.

This is the pxelinux.cfg file,

label kernel
kernel bzImage
append ramdisk_size=200000 initrd=initrd.gz init=/sbin/install


Any help on this is much appreciated.

Thanks.
Sponsored Links
    #2  
Old Unix and Linux 10-04-2010   -   Original Discussion by learn more
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
You appear to be doing a PXELINUX boot, not a PXE boot. I am surprised that you have a configuration file called "pxeboot.cfg" as that is normally the name of a subdirectory in which the actual configuration file resides, i.e /tftpboot/pxelinux.cfg/default. Can you please clarify?
Sponsored Links
    #3  
Old Unix and Linux 10-04-2010   -   Original Discussion by learn more
learn more's Unix or Linux Image
learn more learn more is offline
Registered User
 
Join Date: Jul 2009
Last Activity: 7 December 2010, 1:03 PM EST
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the response.

yes, my config file is /tftpboot/pxelinux.cfg/default only.

After few trail and error, finally got it working by adding rdinit=/sbin/install as well as init=/sbin/install to the append line. Not sure how it is working now :-(
    #4  
Old Unix and Linux 10-04-2010   -   Original Discussion by learn more
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
Glad you got it working.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing Ubuntu 10.4 Boot Loader Option dearanik UNIX for Advanced & Expert Users 1 08-31-2010 09:47 AM
option followed by : taking next option if argument missing with getopts gurukottur Shell Programming and Scripting 2 03-17-2008 01:46 PM
boot failure-init died mrviking HP-UX 12 02-25-2008 02:00 PM
What file contains boot up init details? emplate HP-UX 4 05-04-2005 10:09 AM



All times are GMT -4. The time now is 04:51 PM.