From cd7c26906b75f778810a3b83f6508ae0f4c4c3c4 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 4 Oct 2019 21:31:14 -0400 Subject: create /home/u with btrfs subvolumes preinstalled --- src/initrd/btrfs-create.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/initrd/btrfs-create.sh') 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() initialize_root_filesystem() { - for d in /root/root /root/srv /root/var/cache/apt/archives /root/home; do - make_subvolume_idem "$d" + local uhome=/home/u + local uhome_subs="${uhome} ${uhome}/.cache ${uhome}/.stack ${uhome}/.rustup + ${uhome}/src/fsmgr/_build ${uhome}/Downloads ${uhome}/.mozilla" + for d in /root /srv /var/cache/apt/archives /home $uhome_subs + do + make_subvolume_idem /root/${d} done + chroot /root chown -R u:u ${uhome} mv /root/root/.gnupg /root/root/.gnupg~ mv /gpg/gnupghome /root/root/.gnupg || return -- cgit v1.2.3