rmlint: run as sudo

This commit is contained in:
2022-09-18 02:04:50 -07:00
parent d84600cfcf
commit cb0c122080

View File

@@ -8,7 +8,8 @@ rmlint --types="duplicates" --config=sh:handler=clone --output=sh:/tmp/rmlint.sh
# see: https://btrfs.wiki.kernel.org/index.php/Deduplication # see: https://btrfs.wiki.kernel.org/index.php/Deduplication
# see: https://rmlint.readthedocs.io/en/latest/tutorial.html # see: https://rmlint.readthedocs.io/en/latest/tutorial.html
sudo mount -o remount,rw /nix/store sudo mount -o remount,rw /nix/store
/tmp/rmlint.sh -d || true # on failure, we still want to remount ro # XXX: does rmlint really need to be invoked as root?
sudo /tmp/rmlint.sh -d || true # on failure, we still want to remount ro
# XXX this doesn't work: 'mount point is busy.' # XXX this doesn't work: 'mount point is busy.'
sudo mount -o remount,ro /nix/store sudo mount -o remount,ro /nix/store