Advertisement
Guest User

Untitled

a guest
Apr 10th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. {% for device in salt['cmd.run']('lsblk -io NAME -d -e 11,7,1 -l').splitlines()[1:] %}
  2. salt '*' partition.align_check /dev/{{ device }} minimal 1
  3. salt '*' partition.check /dev/{{ device }} 1
  4. salt '*' partition.cp /dev/{{ device }} 2 3
  5. salt '*' partition.get_id /dev/{{ device }} 1
  6. salt '*' partition.mkfs /dev/{{ device }}2 fat32
  7. salt '*' partition.mklabel /dev/{{ device }} msdos
  8. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement