| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
In order to include these in pycryptsetup we had to create yet
another duplicate copy of execWithRedirect. This patch brings them
back into anaconda so we can easily modify them if needed until
the day when pycryptsetup has this functionality. It also allows us
to redirect the output to someplace useful for debugging.
|
| |
|
| |
|
|
|
|
|
|
| |
Having run as the first argument sets the mode to miscellaneous,
which is not what we want -- we want assembly mode since we are
assembling an array.
|
|
|
|
|
|
| |
I didn't want to add another 0/'0'/'RAID0' tweaking so I made
mdraid.raid_levels and mdraid deviceclass level attribute to contain
constants for levels defined in mdraid.py.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* We get RAID1 from ks parser, mdadm accepts only lowercase level
specifiers of this form.
* We get int device number (e.g. 0) from ks option --device (e.g. md0).
Though this might require rather changes in pykickstart, especially
when mdadm 3.0 allows creating of arbitrary device names in /dev/md.
* mdadm --create --level option is changed to comply strictly to
documentation (e.g. "--level=raid0", though "--level raid0" works too)
|
|
|
|
| |
This is good for when we go back and have to reset the devicetree.
|
| |
|
|
|
|
|
| |
This was either to work around a bug in mdadm or my bad usage, but
either way it is no longer necessary.
|
| |
|
|
|
|
|
|
| |
This only fixes the serious errors that may affect F11 Beta. There's still
a lot of patch left that fixes some more nitpicky stuff which can come in
later.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* storage/__init__.py (createSuggestedVGName): Take into account the new
lvm black list.
* storage/devicelibs/lvm.py (blacklistVG): New function, add a VG to a
the black list.
* storage/devicelibs/lvm.py (vgreduce): introduces a new argument to the
function. rm means use the lvm --removemissing option.
* storage/devices.py (LVMVolumeGroupDevice.complete): New function to
evaluate if VG is consistent.
* storage/devices.py (LVMLogicalVolumeDevice.complete): Likewise for
LVs.
* storage/devicetree.py (_handleInconsistencies): New function intended to
catch all unwanted behavior from the system before continuing.
* storage/devicetree.py (questionReinitILVM): New function intended
to ask the user what to do in case we find inconsistent LVM metadata.
|
|
|
|
| |
(#490891)
|
|
|
|
|
| |
lv_name is passed to the function, not lv_path,
which was used in the raise statements.
|
|
|
|
|
|
|
|
|
|
| |
Rewrote the devicelibs unittest baseclass so we can create and remove another loop devices within the tests.
Rewrote the isRaidXY(raidlevel) functions in mdraid.py into one function isRaid(XY, raidlevel).
Rewrote the get_raid_min_members and get_raid_max_spares functions
to use the new isRaid function, and not use many if-elif-else statements.
Changed the minimum raid members for raid10 to 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use the --config argument from lvm to pass a list of devices from
devicetree.ignoredDisks to lvm so those disks can be ignored in lvm
commands.
* storage/devicelibs/lvm.py (config_args): Add global variable that
will contain the "--config" argument. The argument will be a list
["--config", STRING_ARGS]
* storage/devicelibs/lvm.py (composeConfig): Add function to create the
config_args argument.
* storage/devicelibs/lvm.py (lvm_cc_addFilterRejectRegexp): New function
to regenerate the config_args with a new regular expression.
* storage/devicelibs/lvm.py (pv*, lv*, vg*): Use the global variable for
each LVM command.
* storage/devicetree.py (DeviceTree): Instead of doing a
self.ignoredDisk.append(DISK), we create a new function that adds DISK
to the devicetree list and to the lvm list and whatever else we need.
|
|
|
|
|
|
|
|
|
|
|
| |
* storage/devicelibs/dm.py : For each function that is used in the
storage code, we try to use pyblock first. We fail to calling
dmsetup.
* storage/devices.py : Erased the commented line that had the
pyblock call. We are doing all the pyblock calls from
storage/devicelibs/dm.py.
* storage/devicetree.py : likewise.
* storage/formats/dmraid.py : likewise.
|
| |
|
|
|
|
| |
default values..
|
|
|
|
|
|
| |
Also catch exceptions thrown by platform.bootDevice() and add
mdRaidBootArches from old raid.py to storage.devicelibs.mdraid
for use by the sanityCheck code.
|
| |
|
| |
|
|
|
|
| |
lvm.py and swap.py
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Change minsize/maxsize to minSize/maxSize since that's the
convention elsewhere throughout the code.
- Redirect output from all external utilities to tty5, not
/dev/null.
- Don't waste calls to basename for debug log statements,
especially when the device can be None.
- Add lots of missing imports.
- Fix lots of remnants of previous code usage.
|
| |
|
|
|