Pārlūkot izejas kodu

better clean command

master
vecāks
revīzija
e95b749782
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      CLEAN-COMMAND

+ 7
- 1
CLEAN-COMMAND Parādīt failu

@@ -1,11 +1,17 @@
# DESTROYS EVERYTHING! DON'T USE IF YOU DON'T KNOW WHAT YOU ARE DOING!
# ONLY USE ON FRESH AND NON-PRODUCTIVE SYSTEMS
kill -KILL `lsof -t /target`
umount /target/boot/* /target/* /target
wipefs --all /dev/dm-*
vgchange -an
wipefs --all /dev/md*
pvremove -ff -y /dev/md*
vgchange -an
wipefs --all /dev/md*
mdadm --stop /dev/md*
mdadm --zero-superblock /dev/sd*
mdadm --stop /dev/md*
vgchange -an
pvremove -ff -y /dev/sd*
vgchange -an
wipefs --all /dev/sd*
wipefs --all /dev/sd*

Notiek ielāde…
Atcelt
Saglabāt