| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* plugins/grub/grubUtils.py (is_dev_in_ignored): Change the parted calls
to reflect the pyparted API changes.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
1. Correctly parse the partition arguments as we did with the device
args.
2. Add the functionality of modifying particular partitions.
|
|
|
|
|
| |
Having an option --recover is more intuitive for the user that does not
know how grub works.
|
|
|
|
|
| |
Make the default behavior of grub more sane. The right thing to do when
no arguments are passed is to do nothing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
Nothing was used from the original grub plugin. For now
they will both coexists in the code.
|