summaryrefslogtreecommitdiff
path: root/src/initrd/btrfs-create.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/initrd/btrfs-create.sh')
-rw-r--r--src/initrd/btrfs-create.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh
index 26fa263..6752ec8 100644
--- a/src/initrd/btrfs-create.sh
+++ b/src/initrd/btrfs-create.sh
@@ -148,9 +148,14 @@ make_subvolume_idem()
148 148
149initialize_root_filesystem() 149initialize_root_filesystem()
150{ 150{
151 for d in /root/root /root/srv /root/var/cache/apt/archives /root/home; do 151 local uhome=/home/u
152 make_subvolume_idem "$d" 152 local uhome_subs="${uhome} ${uhome}/.cache ${uhome}/.stack ${uhome}/.rustup
153 ${uhome}/src/fsmgr/_build ${uhome}/Downloads ${uhome}/.mozilla"
154 for d in /root /srv /var/cache/apt/archives /home $uhome_subs
155 do
156 make_subvolume_idem /root/${d}
153 done 157 done
158 chroot /root chown -R u:u ${uhome}
154 159
155 mv /root/root/.gnupg /root/root/.gnupg~ 160 mv /root/root/.gnupg /root/root/.gnupg~
156 mv /gpg/gnupghome /root/root/.gnupg || return 161 mv /gpg/gnupghome /root/root/.gnupg || return