11 Commits
Author SHA1 Message Date
Jörg Thalheim 736c8150b9 disk-deactivate: also clear zpool labels
this helps to avoid ghost pools.
2024-09-03 17:10:47 +02:00
Jörg Thalheim c789d113c6 disk-deactivate: only run zfs command if they are present 2024-09-03 17:10:47 +02:00
Immae a816daa384 Allow more ways to detect disk to deactivate 2024-04-25 11:17:07 +00:00
danjujan f7424625dc Rework Hybrid MBR https://github.com/nix-community/disko/pull/168 (#508)
Add hybrid MBR functionality to the gpt type
2024-01-26 21:59:23 +01:00
phaer be305848c6 umount md device before stopping the raid 2024-01-11 10:37:12 +00:00
Paul HaerleandJörg Thalheim 12d0c39ed3 Don't print an error if there's no raid
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-01-11 10:37:12 +00:00
phaer acd2cbdb31 deactivate: stop raid if disk is a member of it
this is useful in cases where the target machine has
a pre-configured RAID setup, as otherwise disko would
wipe the partition tables and create new ones but would
not be able to inform the kernel about it, as the old
raid was still in use.
2024-01-11 10:37:12 +00:00
Carl Dong 94af39d27e disk-deactivate: Remove MBR bootstrap code for disk 2023-10-22 17:26:03 +00:00
lassulus 7304727801 disk-deactivate: support all raid types 2023-09-12 08:41:56 +00:00
Jörg Thalheim a511f59961 jq: filter null values from mountpoints from lsblk output 2023-02-03 14:57:55 +01:00
lassulus 17da9b0708 init disk-deactivate for cleaning up the disk 2022-12-24 20:53:56 +01:00