From 49c1fe2dbaacc9d6852ca86ff95bf8970b62aaf8 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 23 Apr 2025 16:12:57 +0000 Subject: [PATCH] doc: show how to fix perms when migrating devices --- doc/migrating-storage-device.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/migrating-storage-device.md b/doc/migrating-storage-device.md index 3d97297db..94fecc909 100644 --- a/doc/migrating-storage-device.md +++ b/doc/migrating-storage-device.md @@ -34,4 +34,11 @@ $ sudo btrfs subvolume create new/persist $ rsync -arv old/persist/ new/persist/ ``` -5. insert the disk into the system, and boot! +5. ensure/fix ownership +``` +$ chmod -R a+rX new/nix +# or, let the nix daemon do it: +$ nix copy --no-check-sigs --to new $(nix-build -A hosts.moby) +``` +``` +6. insert the disk into the system, and boot!