summaryrefslogtreecommitdiffstats
path: root/pyanaconda/flags.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a guard for testing if we can modify runtime systemVratislav Podzimek2012-09-281-0/+27
| | | | | | | | | | Using "if flags.liveCDinstall or flags.imageInstall or flags.testing" over and over is incovinient, one may forget to involve some of the conditions and there is no logging of the skipped actions. This patch adds flags.can_touch_runtime_system function, that can be used as a guard and that logs skipped actions. It can also be easily mocked or masked for the needs of testing.
* Add a flag attribute to handle cmdline modeJesse Keating2012-09-271-0/+2
| | | | | | | cmdline mode means do not prompt for missing kickstart data. We need a way to expose this setting to the interface, so create a flag for it. "cmdline" cannot be used because that already exists as a flag, so "ksprompt" is created as a bool. Defaults to true.
* Read cmdline files from /run/installJesse Keating2012-09-191-2/+2
| | | | | We don't have full access to the initrd anymore, so we've had to move where we put the cmdline files. Read from the new location.
* add command line option to set the arm platform.Dennis Gilmore2012-08-061-0/+1
| | | | | | | Use case is to create images using livemedia-creator where we wont be running on the target platform. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* Add flags.automatedInstallBrian C. Lane2012-06-201-0/+1
|
* Add default state for flags.testingBrian C. Lane2012-06-201-0/+1
|
* Merge branch 'master' into newui-mergeBrian C. Lane2012-06-201-80/+120
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.am anaconda anaconda.spec.in loader/loader.c loader/net.c loader/unpack.c po/POTFILES.in pyanaconda/__init__.py pyanaconda/bootloader.py pyanaconda/cmdline.py pyanaconda/constants.py pyanaconda/dispatch.py pyanaconda/errors.py pyanaconda/flags.py pyanaconda/iutil.py pyanaconda/kickstart.py pyanaconda/platform.py pyanaconda/storage/__init__.py pyanaconda/storage/devicetree.py pyanaconda/storage/fcoe.py pyanaconda/storage/formats/swap.py pyanaconda/storage/iscsi.py pyanaconda/storage/partitioning.py pyanaconda/yuminstall.py scripts/makeupdates
| * Add leavebootorder option (anaconda) (revised for master, sigh)Mark Hamzy2012-06-191-1/+2
| | | | | | | | | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=827116 The default on PowerPC machines is to change the boot order to boot into the newly installed drive. There are install scenarios where this is not preferable. So, I have added a new boot commandline and kickstart option called leavebootorder.
| * Move sshpw handling out of AnacondaJesse Keating2012-06-081-2/+1
| | | | | | | | | | | | | | | | This creates an ExecStartPre on the anaconda-sshd.service that will check for a kickstart entry for sshpw. It will add/modify users accordingly prior to launching the sshd service. Since now sshpw and sshd bring up happens outside of and before anaconda starts, we can remove sshd.py and any reference to it.
| * default to msdos disk labels (#816701)Brian C. Lane2012-04-261-3/+3
| | | | | | | | | | | | | | | | | | It appears that Lenovo systems aren't the only ones that have problems booting from GPT labeled disks. This patch does the following: * default to msdos labeled disks * remove the GPT blacklist * remove nogpt cmdline argument * add gpt cmdline argument to force use of GPT disklabel
| * read flags using filename globsBrian C. Lane2012-04-051-1/+7
| | | | | | | | | | read flags from all the conf files in /run/initramfs/etc/cmdline.d/ And add support for filename globs to the read() method
| * read args from 80kickstart.confBrian C. Lane2012-03-191-1/+2
| |
| * fix setattr in set_cmdline_boolPetr Schindler2012-02-141-1/+1
| | | | | | | | | | | | It was missing an argument. Signed-off-by: Brian C. Lane <bcl@redhat.com>
| * Add flags.set_cmdline_bool and flags.read_cmdlineWill Woods2012-02-081-19/+13
| | | | | | | | | | | | | | | | set_cmdline_bool replaces decideCmdlineFlag - it uses BootArgs.getbool. read_cmdline sets a bunch of flags based on the contents of cmdline - this code is basically just split from where it used to live at the end of __init__.
| * flags.py: add new BootArgs() object for dealing with boot argsWill Woods2012-02-081-26/+73
| | | | | | | | | | | | | | | | | | | | | | This replaces Flags.cmdline (and Flags.createCmdlineDict()) with a new BootArgs class. BootArgs' parsing is slightly cleaner and it reads from other data locations (/run/initramfs/etc/cmdline for example). It's a subclass of OrderedDict, so things specified later on the boot commandline can override things near the start.
| * flags.py: rework/cleanup Flags objectWill Woods2012-02-081-54/+48
| | | | | | | | | | | | | | - make Flags a subclass of object - Drop the silly games with __dict__['flags'] in favor of directly setting attributes - Preserve the exception-on-get/set-of-unknown-attribute behavior
* | Add a flag for if this is an automated (kickstart) install or not.Chris Lumens2012-04-261-0/+1
| | | | | | | | | | | | On rare occassion, it's helpful to know whether this is an automated install or an interactive install. I've purposefully not put "kickstart" into the name of the flag since all installs involve kickstart now.
* | Add a testing flag to allow limited use as non-root.David Lehman2012-01-141-0/+1
|/ | | | | This reverts commit 7b909ceb20402d18fb8a8bdb6aad1c51c35db30c. This reverts some of commit 0b30b8ec7ec3c4dbde75da70d0445194ce22e266.
* Add 'nogpt' cmdline arg to disable creation of gpt disklabels.David Lehman2011-10-171-0/+2
| | | | This is for BIOS systems that absolutely cannot boot from GPT disks.
* Remove as many of the /selinux path hardcodings as possible (#729563).Chris Lumens2011-08-111-1/+2
| | | | Convert the others to their proper new path.
* Cherry-pick from rhel5-branch, by Will Woods.Will Woods2011-05-191-2/+3
| | | | | | | | | | | | | | | | | | | Fix shlex traceback if pxeboot cmdline ends in a quote (#500198) There's a pxelinux bug where it fails to add the beginning quote when it tries to add BOOT_IMAGE= to the commandline and the label has spaces (you get e.g.: 'linux BOOT_IMAGE=vmlinuz with label"') Previously we tried to fix this up by adding a quote after BOOT_IMAGE= whenever the cmdline ends in a quote. This causes us to have unbalanced quotes if the cmdline is something like: linux BOOT_IMAGE=vmlinuz ethtool="speed 100 duplex" With this change, we now split the commandline at BOOT_IMAGE= and check to see if the right side has unbalanced quotes. If so, we add a quote after BOOT_IMAGE=. Signed-off-by: Ales Kozumplik <akozumpl@redhat.com>
* Add support for installing onto block device image files.David Lehman2010-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple image files can be specified via "--image=/path/to/image[:name]" on the anaconda command line. The name cannot contain colons. Whenever disk images are specified, they automatically become the only disks visible to anaconda, as if "ignoredisks --only-use" had been used. Fow now, only normal disk images are supported. Do not try to build a fwraid or mpath in image files and expect anaconda to handle it correctly. Don't log to system log for disk image installs. For one thing, it adds a huge amount of text to /var/log/messages. It also has some problem that prevents subsequent attempts to connect to the syslog socket (from anaconda_log.py, anyway) to fail. Don't allow configuration of network devices during disk image installs. Also, don't write anything in /etc/sysconfig on the host system when doing image installs. Don't start auditd when doing an image install. Don't run setupTimezone if installing to disk image file(s). We don't want to change settings on the host system. Don't start or stop iscsi, fcoe, dasd, or zfcp during image installs.
* Cleanup tabs in flags.pyBrian C. Lane2010-09-101-24/+23
|
* ssl: propagate 'url --noverifyssl' into yum repo configuration (#599040).Ales Kozumplik2010-07-081-0/+1
|
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-0/+122
a real Python package. Also updates the build and autotools stuff to work with the new structure