summaryrefslogtreecommitdiffstats
path: root/plugins/grub/grub.py
Commit message (Collapse)AuthorAgeFilesLines
* Experimental flag:Joel Andres Granados2008-11-201-1/+1
| | | | | | | | | Since pretty much have tested the passwd, mdadm.conf and grub plugins, it is time to take away the experimental flat Filesystem flag: We still don't have a plugin that checks the sanity of a storage so this flag will be set by default.
* Handle some corner cases with the revert function in the grub plugin.Joel Andres Granados2008-11-201-1/+11
|
* testsuite/cli tests:Joel Andres Granados2008-11-201-1/+1
| | | | | | | 1. Do the test the right way. We were checking the exact output in order to validate the correctness of the cli. Randomness in FAK and other issues interfered with this test schema. We now check specific output string in the whole output.
* Grub Plugin:Joel Andres Granados2008-10-291-23/+19
| | | | | | 1. Correctly change the state of the issue when devices or partitions are defined. 2. Erase some incode documentation that is not necessary.
* Grup Plugin:Joel Andres Granados2008-10-281-9/+33
| | | | | | | | 1. Address various minor issues with messages to the user. 2. Make the name of the issues different so they can be told appart. 3. Make sure that the fix step fails when there are no devs or parts. 4. Inform the user of the devices and partitions that are being backed up. 5. Make sure that the description is visible.
* Grub Plugin:Joel Andres Granados2008-10-281-14/+15
| | | | 1. Have the grubroot as a class attribute.
* Grup Plugin:Joel Andres Granados2008-10-281-3/+20
| | | | | | 1. Correctly parse the partition arguments as we did with the device args. 2. Add the functionality of modifying particular partitions.
* Grub Plugin:Joel Andres Granados2008-10-281-8/+8
| | | | | | 1. Fix a repeated line and some lines that were over 80 chars. 2. Inform the user how to execute grub in order to install the bootloader into one of the drives.
* Grub plugin:Joel Andres Granados2008-10-241-1/+6
| | | | | Make the default behavior of grub more sane. The right thing to do when no arguments are passed is to do nothing.
* GrubPlugin:Joel Andres Granados2008-10-241-50/+44
| | | | | | | | | | | | | | Parse the arguments correctly for grub plugin. Set the internal variables correctly for grub plguin. Use the internal variavels when deciding which dev to install to. plugin.py: user lstrip instead of just strip to take off the first part of the argument string. This still has an issue as the strip does not strip strings but strips away all the characters listed in the str. At the moment its working because the args always begin with "-" and the plugin names dont have "-" in their names. but this might be a problem in the future.
* Create a new argument (reverting) for the BackupPersistent constructor.Joel Andres Granados2008-10-241-1/+1
| | | | | | | It is necessary to differentiate between calling the BackupPersistent class for backup purposes or for reverting purposes. Also the grub revert function and the firstaidkitrevert file changed to address the new changes.
* Create the revert function for the grub plugin.Joel Andres Granados2008-10-241-3/+27
|
* Add the revert functionality to firstaidkit.Joel Andres Granados2008-10-241-3/+8
| | | | | | | | | | | | | | | | | | | | | This introduces new requirements to the plugins. 1. If a plugin wants to be revertable it must implement the revert function. This function will be accessible from the plugins top most namespace. The same place where get_plugin is. 2. For the plugin's backend directory to be easily found, the plugin must give the backend its module name as an id. In this way when the user specifies in the revert command line plugin 'x', the revert class will go to the backup directory in search for a directory called the same way as the module of 'x'. 3. If the plugin developer does not want to use the system of backup dir naming, there is a second way how to specify the backup dir. The plugin must specify a function getBackupId(), that will return the id of the backup space that can be used for the backup dir search. Backup spaces that fail to comply with these directive will be ignored.
* Add the --install-all and --install-to= arguments for grub.Joel Andres Granados2008-10-201-20/+29
| | | | | | | --install-all: means to install grub binary to all devices and partitions --install-to=: receives a comma separated list of devices where grub plugin should install grub binary. If both options are specified the --install-to options is used.
* Add the "search for other bootloaders" euristic.Joel Andres Granados2008-10-171-20/+38
| | | | | | | | | When looking for the place to install GRUB we need to search for the drives/partitions that dont have other bootloaders in the first 512 bytes. This will be done by means of functions that specifically look for boot loaders. ATM there is only one function that will allow an installation allways. In the futre we hope to have user defined funcitons for specific bootloaders.
* Change the order, to increase readability.Joel Andres Granados2008-10-171-4/+4
|
* The Grub plugin must use a persistent Backup space.Joel Andres Granados2008-08-081-1/+1
|
* Initial commit for the Grub plugin.Joel Andres Granados2008-08-071-0/+261
Nothing was used from the original grub plugin. For now they will both coexists in the code.