lp:~wesley-wiedenmeier/curtin/fix-extended-clear-holders
- Get this branch:
- bzr branch lp:~wesley-wiedenmeier/curtin/fix-extended-clear-holders
Branch merges
- Server Team CI bot: Approve (continuous-integration)
- Wesley Wiedenmeier (community): Needs Resubmitting
- curtin developers: Pending requested
-
Diff: 2214 lines (+1515/-265)15 files modifiedcurtin/block/__init__.py (+176/-47)
curtin/block/clear_holders.py (+379/-0)
curtin/block/lvm.py (+96/-0)
curtin/commands/block_info.py (+75/-0)
curtin/commands/block_meta.py (+82/-203)
curtin/commands/block_wipe.py (+0/-1)
curtin/commands/clear_holders.py (+48/-0)
curtin/commands/main.py (+4/-3)
curtin/config.py (+2/-3)
curtin/util.py (+35/-8)
doc/devel/clear_holders_doc.txt (+85/-0)
tests/unittests/test_block.py (+99/-0)
tests/unittests/test_block_lvm.py (+94/-0)
tests/unittests/test_clear_holders.py (+321/-0)
tests/unittests/test_util.py (+19/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 521. By Wesley Wiedenmeier
-
Add function lvm.lvmetad_
running( ) to check status of lvm metadata daemon and
only append '--cache' flag in lvm.lvm_scan() if it is running. this avoids
issues when the lvmetad service is not running on a release that does support
it - 520. By Wesley Wiedenmeier
-
In block.clear_
holders, do not define DEV_TYPES registry at bottom of file.
Instead, put its contents into a function at the top that is run by the
interpereter when it reaches the bottom of the file. This makes the contents of
the registry easy to find and read for anyone viewing the file without causing
errors because the interpreter is attempting to find functions that have not
been defined yet as would happen if the registry were moved to the top of the
file outside ofa function - 519. By Wesley Wiedenmeier
-
In util.write_file, don't do chmod if mode kwarg is a false value
In block.clear_holders. shutdown_ bcache use util.write_file - 518. By Wesley Wiedenmeier
-
Accept a failure to run 'modprobe bcache' instead of halting installation
because any systems that have a kernel that does not support bcache will never
start bcache devies even if there are bcache superblocks present on the system
already, so it is okay if clear_holders does not detect the old bcache
superblocks as they won't actually hold anything back from being partitioned - 517. By Wesley Wiedenmeier
-
Updated clear_holders based on diff comments in
https://code.launchpad .net/~wesley- wiedenmeier/ curtin/ fix-extended- clear-holders/ +merge/ 294694 - 516. By Wesley Wiedenmeier
-
In clear_holders.
shutdown_ bcache test if device to shut down is already shut
down before doing anything - 515. By Wesley Wiedenmeier
-
IN clear_holders.
wipe_superblock , use blockdev not sysfs path in call to
block.is_extended_ partition
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~curtin-dev/curtin/trunk