improve partition wipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Won't Fix
|
Wishlist
|
Andrew Woodward |
Bug Description
Hi all,
I have 2 cents to add in pre-script in a kickstart file.
Instead of using dd if=/dev/zero of=/dev/sda bs=1M count=10
we can use the following commands:
# sgdisk --zap-all /dev/sda
# parted -s /dev/sda mklabel gpt
from man sgdisk: Zap (destroy) the GPT and MBR data structures and then exit. This option works much like -z, but as it wipes the MBR as well as the GPT, it's more suitable if you want to repartition a disk after using this option
from man parted: mklabel Create a new disklabel (partition table) of label-type.
Thank you.
Best Regards,
Aleksandr Dobdin.
--
As I understand, we will simply modify a couple of lines in a file https:/
--
We should also check the wipe task that astute does
Changed in fuel: | |
milestone: | none → 5.0 |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Vladimir Kozhukalov (kozhukalov) |
Changed in fuel: | |
milestone: | 5.0 → 5.1 |
Changed in fuel: | |
importance: | Medium → High |
Changed in fuel: | |
assignee: | Vladimir Kozhukalov (kozhukalov) → Andrew Woodward (xarses) |
Changed in fuel: | |
milestone: | 5.1 → 6.0 |
Source of the info for ticket: http://<email address hidden> /msg00662. html