Sponsored Content
Top Forums UNIX for Advanced & Expert Users Network Bootloader using Linux ... Post 302274504 by Corona688 on Wednesday 7th of January 2009 06:14:27 PM
Old 01-07-2009
Your question inspired me to try again, this time with a fedora 8 install/rescue disk, the software of which is very flexible if poorly documented. It works.

You need vmlinuz, initrd.img, and stage2.img from the fedora 8 install disk. vmlinuz and initrd.img go under /tftproot/fedora-8/ , while stage2.img needs to be on an http or ftp server you have access to. This done, the following addition to pxelinux.cfg lets it boot the fedora 8 rescue system diskless, auto-downloading the 100mb stage file from your local web server.
Code:
LABEL fedora-8
        KERNEL fedora-8/vmlinuz
        APPEND initrd=fedora-8/initrd.img rescue method=http://mywebsite/fedora-8/

Note that fedora will expect http://mywebsite/fedora-8/images/stage2.img, not http://mywebsite/fedora-8/stage2.img . It still asks a few annoying questions but all in all I think that's as automated as it's going to get, I'm happy I don't have to type in the URL every time.

Of course, a diskless OS that needs to download a 100mb file is going to need a decent chunk of RAM, but since 256mb is considered small these days...

Last edited by Corona688; 01-07-2009 at 07:21 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

solaris 10 bootloader

Hi, I'm new to solaris and I have a question about installing solaris 10. Does solaris during install create a /boot partition? And if it does, is it possible to set the bootloader on this partition or will it always be on the MBR? greetz tony (4 Replies)
Discussion started by: topa
4 Replies

2. AIX

can anybuddy tell me what bootloader is used in AIX4.3

hi this is fani working as jr system administration on unix flavours so please help waht bootloader is used in AIX 4.3 ver now LILO is using in AIX 5 help me to find the answer and there configuration file also tankzz.............. (0 Replies)
Discussion started by: phanifani
0 Replies

3. Red Hat

RedHat BootLoader

Hi, I have Windows XP and RedHat ES both. Last day I format windows due to problems in it, But now the BootLoader that used to come earlier is not coming. My system is directly booting Windows XP. How can I recover RedHat or what I need to do to get back the BootLoader. So that I can use both... (1 Reply)
Discussion started by: somnathbanerjee
1 Replies

4. UNIX for Dummies Questions & Answers

Help needed with bootloader configuration !

I have installed Fedora 8 in my external harddrive in my laptop( toshiba satellite 1135-S125). During initial installation i installed the bootloader in the MBR of the external harddisk instead of the internal harddisk. the problem is that i donot always turn on the external harddrive;therefore,... (0 Replies)
Discussion started by: sunilryl
0 Replies

5. UNIX for Dummies Questions & Answers

Bootloader problem Grub.

Bootloader problem Grub. Hello, I have some questions about my Mandriva Linux. My father died last year and so I got automatically forced to use Linux (master computer). I have become a little bit known with it, had to reset the root password via command lines etc. But I... (11 Replies)
Discussion started by: blabla9002
11 Replies

6. Boot Loaders

Bootloader Resources

Here is a list of resources for Unix and GNU/Linux bootloaders: GRUB Legacy: The original GRand Unified Bootloader. Now known as GRUB Legacy. GRUB: The latest and greatest. More commonly known as GRUB2. BRUG: Brand-new Universal loadeR from GRUB. Based on GRUB. Adds features like new object... (0 Replies)
Discussion started by: fpmurphy
0 Replies

7. Solaris

Bootloader Administration Tool

I need to know how to install & use 'Bootloader Administration Tool' in Solaris 11 Express. There is some documentation on this tool under 'Help' if you are in 'Package Manager'. :wall: Thanks (0 Replies)
Discussion started by: Tenyhwa
0 Replies

8. UNIX for Dummies Questions & Answers

Right place to install Linux bootloader

I installed ubuntu on a windows machine, but after restart the computer automatically booted windows without showing me boot option. I think I might have installed my ubuntu bootloader in the wrong partition. I previously have sda1,2,3,5 and 6. I partitioned sda6 into sda6, sda7 and sda8. I... (4 Replies)
Discussion started by: freedombird9
4 Replies

9. Ubuntu

How do I re-install my bootloader?

I accidently altered my partition table. Somehow I wiped it out completely and changed the disk label. Before I rebooted I managed to rebuild it the way it originally was using the original structure and label however I need to re-install a new bootloader for the new MBR. I have Ubuntu 14.04TLS... (1 Reply)
Discussion started by: project722
1 Replies

10. Ubuntu

How to change a preset bootloader

I have 2 pc's and 1 laptop (all less than a year old) and all 3 have been messed with by super smart but nosy roommate. The bootloader for all three (Gigabyte,Asus and Hp laptop) runs from RAM disk (Paragon software boot it bare metal I think) on a virtual drive that has all the different drivers... (0 Replies)
Discussion started by: kamiz101
0 Replies
Bootloader::Tools(3)					User Contributed Perl Documentation				      Bootloader::Tools(3)

NAME
Bootloader::Tools - set of high-level bootloader configuration functions PREFACE
This package contains a set of high-level bootloader configuration functions SYNOPSIS
"use Bootloader::Tools;" "$mp_ref = Bootloader::Tools::ReadMountPoints ();" "$part_ref = Bootloader::Tools::ReadPartitions ();" "$numDM = Bootloader::Tools::DMRaidAvailable ();" "$part_ref = Bootloader::Tools::ReadDMRaidPartitions ();" "$part_ref = Bootloader::Tools::ReadDMRaidDisks ();" "Bootloader::Tools::IsDMRaidSlave ($kernel_disk);" "Bootloader::Tools::IsDMDevice($dev);" "$md_ref = Bootloader::Tools::ReadRAID1Arrays ();" "$loader = Bootloader::Tools::GetBootloader ();" "$value = Bootloader::Tools::GetSysconfigValue ();" "Bootloader::Tools::InitLibrary ();" "Bootloader::Tools::CountImageSections ($image);" "Bootloader::Tools::RemoveImageSections ($image);" "Bootloader::Tools::GetSystemLanguage ();" "Bootloader::Tools::GetDefaultSection ();" "Bootloader::Tools::GetDefaultImage ();" "Bootloader::Tools::GetDefaultInitrd ();" "Bootloader::Tools::GetGlobals();" "Bootloader::Tools::SetGlobals(@params);" "Bootloader::Tools::GetSectionList(@selectors);" "Bootloader::Tools::GetSection($name);" "Bootloader::Tools::AddSection($name, @params);" "Bootloader::Tools::RemoveSections($name);" "Bootloader::Tools::AdjustSectionNameAppendix ($mode, $sect_ref_new, $sect_ref_old);" "$exec_with_path = Bootloader::Tools::AddPathToExecutable($executable);" DESCRIPTION
"$mp_ref = Bootloader::Tools::ReadMountPoints ();" reads the information about mountpoints in the system. The returned data is needed to initialize the bootloader library properly. See InitLibrary function for example. "$part_ref = Bootloader::Tools::ReadPartitions ();" reads the information about disk partitions. This data is needed to initialize the bootloader library properly. See InitLibrary function for example. "Bootloader::Tools::GetMultipath ();" Gets multipath configuration. Return reference to hash map, empty if system doesn't contain multipath. "Bootloader::Tools::GetMultipath ();" Gets multipath configuration. Return reference to hash map, empty if system doesn't contain multipath. "$numDM = Bootloader::Tools::DMRaidAvailable ();" Tests wether DMRAID is available. Return 0 if no device, 1 if there are any. "$part_ref = Bootloader::Tools::ReadDMRaidPartitions ();" reads partitions belonging to a Devicemapper RAID device. needed to be able to put get the correct translation into Grub notation DMRaid Devices look like: <strange name> DMRaid Partitions look like: <strange name>_partd "$part_ref = Bootloader::Tools::ReadDMRaidDisks ();" returns a refenrence to a list of DMRaid devices "Bootloader::Tools::IsDMRaidSlave ($kernel_disk);" checks wether a kernel_device is part of a DMRAID returns 1 if yes, 0 if no "Bootloader::Tools:IsDMDevice ($device);" returns 1 if $device is a Devicemapper device, otherwise 0. "$md_ref = Bootloader::Tools::ReadRAID1Arrays ();" reads the information about disk MD RAID1 arrays. This data is needed to initialize the bootloader library properly. "$loader = Bootloader::Tools::GetBootloader ();" returns the used bootloader. Reads the value from sysconfig. Returns the string - bootloader type. See InitLibrary function for example. "$value = Bootloader::Tools::GetSysconfigValue ();" returns specified option from the /etc/sysconfig/bootloader file or undef if variable is not set. See AddSection for example "Bootloader::Tools::InitLibrary ();" initializes the bootloader configuration library. Fills its internal structures needed for it to run properly. "Bootloader::Tools::CountImageSections ($image);" counts sections in the bootolader menu reffering to the specified kernel. EXAMPLE: Bootloader::Tools::InitLibrary(); my $count = Bootloader::Tools::CountImageSections ("/boot/vmlinuz-2.6.11"); print "Sections: $count "; "Bootloader::Tools::CountSections (@selections);" # FIXME: add documentation "Bootloader::Tools::UpdateBootloader ();" Updates the bootloader settings meaning do whatever it takes for the actual bootloader to use the current configuration "$lang = Bootloader::Tools::GetSystemLanguage ();" Read the System Language from /etc/sysconfig/language:RC_LANG EXAMPLE: my $Lang; $Lang = Bootloader::Tools::GetSystemLanguage (); setlocale(LC_MESSAGES, $Lang); "%defaultSelection = Bootloader::Tools::GetDefaultSection ();" Get the default section, returns a hash reference EXAMPLE: my %section; %section = Bootloader::Tools::GetDefaultSection (); my $default_kernel = $section{"image"}; "Bootloader::Tools::GetDefaultImage ();" Get the kernel name of the default section EXAMPLE: my $kernel; $kernel = Bootloader::Tools::GetDefaultImage (); print("Default Kernel Name: $kernel "); "Bootloader::Tools::GetDefaultInitrd ();" Get the initrd of the default section EXAMPLE: my $initrd; $initrd = Bootloader::Tools::GetDefaultInitrd (); print("Default initrd Name: $initrd "); "Bootloader::Tools::GetGlobals();" "Bootloader::Tools::SetGlobals(@params);" # FIXME: Add documentation "Bootloader::Tools::GetSectionList(@selectors);" # FIXME: Add documentation "Bootloader::Tools::GetSection($name);" # FIXME: Add documentation "Bootloader::Tools::AddSection($name, @params);" Add a new section (boot entry) to config file, e.g. to /boot/grub/menu.lst EXAMPLE: my $opt_name = "LabelOfSection"; my @params = (type => $type, image => $opt_image, initrd => $opt_initrd, ); Bootloader::Tools::AddSection ($opt_name, @params); "Bootloader::Tools::RemoveImageSections ($image);" removes all sections in the bootloader menu referring to the specified kernel. EXAMPLE: Bootloader::Tools::InitLibrary (); Bootloader::Tools::RemoveImageSections ("/boot/vmlinuz-2.6.11"); Bootloader::Tools::UpdateBootloader(); "Bootloader::Tools::RemoveSections($name);" "Bootloader::Tools::AdjustSectionNameAppendix ($mode, $sect_ref_new, $sect_ref_old);" Adds and respectively removes a potential appendix of a section name. In case of mode "add", it adjusts labels which only differ in their corresponding flavors in the following way, e.g.: SUSE Linux Enterprise Server 10 - 2.6.16.54-0.2.3 (default) and SUSE Linux Enterprise Server 10 - 2.6.16.54-0.2.3 (smp) Thus, the corresponding flavors will be appended in brackets. In case of mode "remove", an appended flavor will be removed from the section label if the corresponding section is the only one left referring to a kernel with it's specific version. EXAMPLE: my $mode = "add"; my $sect_ref_new = \%new_section; Bootloader::Tools::AdjustSectionNameAppendix ($mode, $sect_ref_new); or my $mode = "remove" my $sect_ref_new = @section_naems_after_removal; my $sect_ref_old = @section_names_before_removal; Bootloader::Tools::AdjustSectionNameAppendix ($mode, $sect_ref_new, $sect_ref_old); "Bootloader::Tools::AddPathToExecutable ($executable);" Prepends the corresponding (absolute) path to the given executable and returns the result. If not found in path, function returns undef. EXAMPLE: my $executable = "dmsetup"; my $exec_with_path = Bootloader::Tools::AddPathToExecutable ($executable); if (-e $exec_with_path) { print ("The desired executable is located here: $exec_with_path"); } perl v5.12.1 2010-05-25 Bootloader::Tools(3)
All times are GMT -4. The time now is 09:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy