summaryrefslogtreecommitdiffstats
path: root/plugins/grub/grubUtils.py
Commit message (Collapse)AuthorAgeFilesLines
* pyparted changed its API.Joel Andres Granados2009-08-171-7/+7
| | | | | * plugins/grub/grubUtils.py (is_dev_in_ignored): Change the parted calls to reflect the pyparted API changes.
* Grup Plugin:Joel Andres Granados2008-10-281-14/+18
| | | | | | | | 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-9/+28
| | | | | | | 1. Add a search for the window bootloader. This search is based on http://en.wikipedia.org/wiki/Master_boot_record and will be the plugins default until I or someone more intelligent than me comes up with a better way of iding windows bootloader.
* Grup Plugin:Joel Andres Granados2008-10-281-23/+38
| | | | | | 1. Correctly parse the partition arguments as we did with the device args. 2. Add the functionality of modifying particular partitions.
* Grub Plguin:Joel Andres Granados2008-10-241-5/+8
| | | | | Having an option --recover is more intuitive for the user that does not know how grub works.
* Grub plugin:Joel Andres Granados2008-10-241-2/+15
| | | | | 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-3/+6
| | | | | | | | | | | | | | 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 the revert function for the grub plugin.Joel Andres Granados2008-10-241-2/+2
|
* Add the revert functionality to firstaidkit.Joel Andres Granados2008-10-241-4/+4
| | | | | | | | | | | | | | | | | | | | | 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.
* Create a function to handle the grub plugin arguments.Joel Andres Granados2008-10-201-1/+55
| | | | | | This function will translate all the arguments into a container that organizes all the arguments for grub. This container also has the default values of each argument.
* Add the "search for other bootloaders" euristic.Joel Andres Granados2008-10-171-0/+25
| | | | | | | | | 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.
* Initial commit for the Grub plugin.Joel Andres Granados2008-08-071-0/+406
Nothing was used from the original grub plugin. For now they will both coexists in the code.