rmlint: run as sudo
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user