summaryrefslogtreecommitdiffstats
path: root/loader/kickstart.c
Commit message (Collapse)AuthorAgeFilesLines
* Completely remove loader/Will Woods2012-02-151-1108/+0
| | | | IT IS ACCOMPLISHED.
* Support prefix length in kickstart network --ipv6 option.Radek Vykydal2011-11-011-0/+7
| | | | e.g. network --ipv6=2001:aaaa::1/48
* Fix sigsegv in setKickstartNetwork() (strdup() from a NULL).Ales Kozumplik2011-10-041-14/+10
| | | | | | See also 88eaea1d9e3811e08e56174f93d9362e95494e77. Resolves: rhbz#734967
* use macro name instead of valueVratislav Podzimek2011-08-011-2/+2
|
* be more defensive -- check values for nonsensesVratislav Podzimek2011-06-221-0/+2
|
* enable netmask setting for wireless connectionsVratislav Podzimek2011-06-221-3/+3
|
* enable dns settings of wireless connectionVratislav Podzimek2011-06-221-3/+3
|
* enable gateway settings of wireless connectionVratislav Podzimek2011-06-221-3/+6
|
* enable wpa in kickstartVratislav Podzimek2011-06-221-3/+55
|
* Fix SIGSEGV for netwowrk --device=<MAC> which is not found (#697432)Radek Vykydal2011-04-181-3/+2
| | | | | | | | | We ended up with netDev_set == 1 and netDev == NULL in the case which resulted in SIGSEGV later. The patch sets netDev to value of --device option which leads to asking in UI as in other similar cases. Resolves: rhbz#697432
* Remove all the custom shutdown/reboot/halt code in loader and init.Chris Lumens2011-04-121-25/+0
| | | | | These decisions will now be made in anaconda proper. There's no need to involve three separate processes in the discussion.
* Fix order of opts and host when processing kickstart nfs lines.Chris Lumens2011-03-161-1/+1
| | | | Related: rhbz#683953
* Consolidate ip address checking into functions.Radek Vykydal2011-03-101-21/+6
|
* Fix parsing of ipv6 --gateway in kickstart (#677609)Radek Vykydal2011-03-101-1/+1
|
* Fix setting of some network values in loader kickstart (#679825).Radek Vykydal2011-03-021-50/+50
| | | | | Also remove noksdevice handling. It doesn't work anymore, I wonder if it ever have worked or even been used.
* Do not activate first ks network device automatically in non-network installs.Radek Vykydal2011-03-021-13/+13
| | | | | | | | | | | | For non-network installs it restores rhel 5 behaviour that was changed in master by commit 9767cb5fce174e8fcf28d06ad6f48384129a7cd4 (which would activate the device in any case). Now new --activate option can be used if bringing up the device in non-network install is desired. Port from rhel6-branch. Related: rhbz#638131
* Always activate first kickstart network deviceRadek Vykydal2011-03-021-1/+2
| | | | | | | | | | | | | | Port from rhel6-branch. Resolves: rhbz#668395 No matter whether it has the new --activate flag set. For network installs restores common rhel 5 and master behaviour. For non-network installs it restores master's behaviour which is to activate the device. Rhel 5 behaviour (don't bring the device up for non-network installs) will be restored by following patch.
* Add kickstart network --nodefroute optionRadek Vykydal2011-03-021-0/+6
| | | | | | | | | Port from rhel6-branch. Resolves: rhbz#638131 Sets DEFROUTE=no in ifcfg file. Use case: one NIC used to fetch packages, another for iSCSI. Using the option we can prevent the latter to grab default route.
* Add support for ks network --bootproto=ibftRadek Vykydal2011-03-021-0/+3
| | | | | Port from rhel6-branch Resolves: rhbz#638131
* Parse all kickstart network commands in loader tooRadek Vykydal2011-03-021-97/+133
| | | | | Port from rhel6-branch. Resolves: rhbz#638131
* Activate all devices set by kickstart network --activate commandRadek Vykydal2011-03-021-6/+15
| | | | | Port from rhel6-branch. Resolves: rhbz#638131
* Attempt at fixing reboot behavior in kickstart (#676968).Chris Lumens2011-02-231-1/+3
| | | | | I think that rebooting is accomplished by not specifying halt or reboot, so don't specify either of those.
* The default kickstart UI is graphical, specify other if you want it (#678095).Chris Lumens2011-02-161-6/+6
| | | | | This should fix all problems described in the above bug. All the decisions about suggesting VNC are handled within anaconda proper.
* Don't always attempt to load updates on kickstart installs (#677131).Chris Lumens2011-02-151-4/+6
| | | | | | pykickstart ensures that if "updates" is given, url is set to "floppy". Otherwise, you've either provided a URL or skipped the command entirely. In the last case, url is "".
* Don't fail on missing %includes during loader kickstart processing (#676940).Chris Lumens2011-02-141-2/+2
| | | | | | | | | | | | | | | | Lots of people rely on the fact that a %pre script can generate a file that will later be %included. Proper kickstart processing involves first making a pass over the file looking for any %pre scripts, ignoring all %include lines. Then another pass is made that handles all the %includes, which will pick up and that were generated. With the pykickstart integration, I made it so reboot and other loader-handled kickstart commands can be in a %include file. However, this also made a missing %include a fatal error, which breaks the %pre-generated include trick. This fix makes it so any %includes that do exist will be processed in loader, but missing ones will not be a fatal error. It will only be much later during anaconda proper that a missing include will cause an error.
* Don't call preprocessKickstart from within anaconda as well.Chris Lumens2011-01-251-5/+5
| | | | | Since the loader is doing this now, we can just call it once there, then pass the preprocessed file location into anaconda via the --kickstart parameter.
* We don't need the command names anymore.Chris Lumens2011-01-251-29/+22
| | | | | | | Since we're just running every command handling function and letting the function decide whether it need to do anything, there's no need for the command names and special structure. Instead, just keep an array of function pointers to iterate.
* Convert kickstart functions to use Python.Chris Lumens2011-01-251-453/+415
|
* Move all kickstart functions into kickstart.c.Chris Lumens2011-01-251-0/+436
| | | | | Running the commands will now require operating on PyObjects, and I don't want to expose that outside of kickstart.c.
* Get rid of the kickstart command codes, and alphabetize the command table.Chris Lumens2011-01-251-29/+20
|
* Remove ksReadCommands, convert to using pykickstart for parsing.Chris Lumens2011-01-251-144/+51
| | | | | | | This involves converting runKickstart to setting up the pykickstart interface and then walking through every entry in ksTable to call the setupData function. A later patch will change these functions to make sure there's something for them to do before running.
* Add functions to support interfacing loader with pykickstart.Chris Lumens2011-01-251-0/+131
| | | | | | Doing this lets me get rid of the special purpose kickstart parser in kickstart.c that doesn't understand %ksappend or %include and must certainly follow different quoting rules.
* break the dependency of modules.c on loader.hAles Kozumplik2010-07-201-0/+51
|
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-281-3/+3
| | | | | | | This is required so the source layout and package layout have a similar enough structure to make our test setup work. Without this move, you can't run "make check" or checkbot without getting error messages about no such module pyanaconda.booty.
* Bring up network for local hd vnc kickstart installs (#522064)David Cantrell2010-04-291-0/+10
| | | | | | | | | | | | | | | | | | | | Where people come up with these use cases is beyond me. Here we go: 1) Prepare an ext2/3/4 volume on the hard disk and drop the install DVD iso as well as images/install.img on there. 2) Drop a kickstart file on this volume called ks.cfg. Make sure it: a) Has *no* 'network' lines b) Uses 'harddrive --partition=DEVICE --dir=/PATH' c) Contains a valid 'vnc' line 2) Copy vmlinuz and initrd.img to the /boot directory for the system. 3) Edit boot loader configuration to boot the installer kernel+ramdisk. 4) Reboot system, choose installer and pass: ks=hd:DEVICE:ks.cfg Without this patch, the network is never configured during loader because both the install media and kickstart file are provided locally. However, we do need to bring up the network for vnc, so look for a vnc line in the kickstart file and make sure the network is brought up.
* move log.c from loader into isys.Ales Kozumplik2010-03-081-1/+1
| | | | | | This is in preparation to use logging from imount.c. We don't want a dependency of isys on loader, instead move logging code into isys and change loader sources to use the log.h header in isys.
* Sleep if the kickstart file read fails (#537361)Ales Kozumplik2009-11-191-0/+8
| | | | | | | | | | | | | If a read from a block device (like USB key) or a cdrom (USB cdrom) fails, sleep a bit to give the device some time to initialize. Return status of the mount command is checked so waiting occurs only if there is a reasonable chance that the device might eventually come online. This required extending our existing mounting methods to report the correct mount error code. I tested that * the installer still runs * reading the kickstart from a usb works * starting the installer with no USB key inserted but a command line argument pointing to a USB drive will trigger the waiting cycle and that when the key is inserted while waiting the kickstart is eventually found on the key.
* Replace all popt use with glib's option parsing code.David Cantrell2009-11-181-23/+30
| | | | | We have glib for other things, so we can use it for option parsing and dump another library dependency.
* Use glib data structures in loader's module handling code.David Cantrell2009-11-161-2/+1
| | | | | Use glib's data structures and string functions in modules.c since we already have glib. Add in some safety checks as well.
* libcurl supports https in addition to http, so change our tests.Chris Lumens2009-09-301-2/+2
|
* getHostAndPath is only used by the nfs code, so move it.Chris Lumens2009-09-301-66/+0
| | | | | Also, rip out all the username/password stuff too. That's not needed for nfs.
* Clean up getHostandPath() debugging messages for host & file.David Cantrell2009-09-291-3/+4
|
* Allocate memory for login and password and do not meddle with host pointer ↵Martin Sivak2009-08-191-2/+8
| | | | so we can correctly free it (#483818)
* Fix an erroneous "!" in the test for doKill, and make reboot explicit.Peter Jones2009-08-121-7/+13
| | | | | | This test causes it not to reboot if you don't specify anything about rebooting in kickstart or on the command line. It also treats /all/ installs with "nokill" specified as "halt" installs.
* Don't segfault with "ks someotherparam" (#498307).Chris Lumens2009-04-301-3/+4
|
* Followup to commit b27dcdc6a37b5429b50579dbf0650e880a95988cDavid Cantrell2008-11-171-1/+1
| | | | | Fix two missing things. I dropped the { in the git patch and needed to remove the now-unused iface_t in main.
* Do not bring up network for non-remote kickstart locations (#471658)David Cantrell2008-11-171-0/+21
| | | | | | | If the user passes ks=hd: or another non-remote kickstart location, do not bring up networking during installation. However, if they pass the 'vnc' parameter, make sure we do bring up networking early because we can't let them configure it by the time we get to stage2.
* Renamed loader2 subdirectory to loader (hooray for git)David Cantrell2008-08-251-0/+566
|
* remove old loader dir. for referencing, go back to anaconda-8-0-branchJeremy Katz2003-01-071-171/+0
|
* fix the format arguments to avoid segfaults in the loader on kickstart ↵Jeremy Katz2002-10-141-1/+1
| | | | config problem (found looking at #75614)