Obrigado pelas respostas, criei um comando sed para ele:
[root@notebook ~] test 'whoami'=root && k='cryptsetup luksDump -q --dump-master-key $(blkid | awk '/crypto_LUKS/ {print $1}' | cut -d: -f1 | head -1)' && echo "$k" | sed 's/^MK dump:/Fgkmtusjs\nMK dump:/g' | sed '1,/^Fgkmtusjs/d' | sed 's/.*\t//g' | sha512sum | sed "s/\-/'hostname'/g"
Enter LUKS passphrase:
d78abb0542736865f94704521609c230dac03a2f369d043ac212d6933b91410e06399e37f9c5cc88436a31737330c1c8eccb2c2f9f374d62f716432a32d50fac notebook.localdomain
[root@notebook ~]
testado em: Scientific Linux 6.4; Ubuntu 12.04