Closed stellarpower closed 2 years ago
You're using the old bash script version of systemd-swap. I'm not sure if this works in the Python version, but you can try that one if you're still interested.
I can see that it's trying to create the parent directory, but that fails already. Since there is no error reported for the actual directory, I'm going to assume that it's a btrfs volume because the output of btrfs subvolume create "$swapfc_path"
is redirected to /dev/null
. Otherwise, we'd probably see another mkdir
error. Honestly, no idea what's actually happening there.
I'll close this issue. Feel free to open another issue if it also happens with the current version.
A okay, I think I installed through the package manager, it's on 4.3.3. I'll try cloning and building the deb and see. Thanks :)
Hi,
Trying to create a swap dir on a separate partition to the root FS - that's pretty full already in my setup. The partition is mounted using udisksctl by a non-root user, so is under /media. I'm running Ubuntu 20.04.
I imagine there could be a few root causes here - whether using an external partition is allowed; if I've not mounted it suitably; if it's a permission thing with systemd - I'll leave the issue generic for now, and if you are able to advise on what is more specifically going wrong, then am happy to make it more specific and add any more information if required - quite probably is a fault with my end, but am opening anyway in case. If only certain devices (usually) work, might be helpful to add to the docs.
Thanks!