Last active
August 29, 2015 14:06
-
-
Save clojens/c844e1a642e17f62dc46 to your computer and use it in GitHub Desktop.
ZSH script tested and I need raw since no paste console yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: ${(AA)=sgd::= ef02:bios 1:0:+2M | |
8300:boot 2:0:+200M | |
8300:root 3:0:+3G | |
8300:usr 4:0:+10G | |
8300:local 5:0:+5G | |
8300:opt 6:0:+5G | |
8300:var 7:0:+13G | |
8300:srv 8:0:+4G | |
8300:home 9:0:+8G | |
8200:swap 10:0:0 | |
} && for k (${(@k)sgd}) { | |
no=${(ws.:.)${sgd[$k]}[1]} | |
"print -"{n,t,c}" "{${sgd[$k]},$no:${${(ws.:.)k}[1]},$no:${${(ws.:.)k}[2]}}" $target_disk" | |
} | |
: ${(A)=sgd:: bios:ef02:+2M | |
boot:8300:+200M:ext2 | |
root:8300:+3G:ext4 | |
usr:8300:+10G:ext4 | |
usr/local:8300:+5G:ext4 | |
opt:8300:+5G:ext4 | |
var:8300:+13G:reiserfs | |
srv:8300:+4G:ext4 | |
home:8300:+8G:ext4 | |
swap:8200:0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment