onedr0p / home-ops

Wife approved HomeOps driven by Kubernetes and GitOps using Flux
https://onedr0p.github.io/home-ops/
Do What The F*ck You Want To Public License
1.98k stars 179 forks source link

rook-disk-job: bad dd flag #7990

Closed hur closed 1 month ago

hur commented 1 month ago

Describe the bug or feature request

Hi, I've been playing with cluster bootstrapping both with cluster-template and this repo on my own homelab. Came across what seems to be a bug in .taskfiles/Bootstrap/resources/rook-disk-job.tmpl.yaml

The following:

dd if=/dev/zero of=${disk} bs=1M count=100 oflag=direct,dsync;

results in dd: invalid argument 'dsync' to 'oflag'. It seems like the alpine/coreutils dd does not support this flag (I'm running on amd64 for reference)?

I worked around this by removing the dsync flag.

Code of Conduct

onedr0p commented 1 month ago

Thanks for the info, looks like I added it here https://github.com/onedr0p/home-ops/commit/aa384f65450a774c57fb0ada3135fc641c05946b and probably didn't test it as the cluster was already running.