Steve is right in the wrong placement of sudo, but I don't think
brackets would do (that would create a subshell in your current sh).
You simply need to add sudo in front of dd, which is the only one that
needs elevated privileges, ie.
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1
2>/dev/null | base64)" -nosalt </dev/zero \
| pv -bartpes <DISK_SIZE> | sudo dd bs=64K of=/dev/sd"X"
Cheers
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/1513727438.933.1.camel%4016bits.net.
For more options, visit https://groups.google.com/d/optout.