> Just adding a “sleep” is no proper fix anyway, so the question > is, how to wait in a shell script until the swap device is > *really* swapoff’d when the syscall returns too early, and > (someone from the Linux kernel maintainers reading this?) should > I report the latter as a bug against the kernel?
I'd file a bug report against the `mount` package (the one that provides `swapoff`). Stefan