summaryrefslogtreecommitdiff
path: root/old-school/lvm-create.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 04:32:28 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 04:32:28 -0400
commit128ae7272f6c85ef0f703f9384704a0d6f75522c (patch)
tree53795adf5ac2eea353d2376efa614d45e5f67bcc /old-school/lvm-create.sh
parent2f133578fd7f6060d7eb7e6cbc75f6f7cc9c93ac (diff)
put /root in separate btrfs snapshot
Diffstat (limited to 'old-school/lvm-create.sh')
-rw-r--r--old-school/lvm-create.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh
index 7f5bea4..ce0862e 100644
--- a/old-school/lvm-create.sh
+++ b/old-school/lvm-create.sh
@@ -61,8 +61,9 @@ init_samizdat()
61 61
62initialize_root_filesystem() 62initialize_root_filesystem()
63{ 63{
64 btrfs subvolume create /root/gpg || return 64 rm -r /root/root
65 mv /gpg/gnupghome /root/gpg/ || return 65 btrfs subvolume create /root/root || return
66 mv /gpg/gnupghome /root/root/.gnupg || return
66 67
67 rm -r /root/var/cache/apt/archives 68 rm -r /root/var/cache/apt/archives
68 btrfs subvolume create /root/var/cache/apt/archives || return 69 btrfs subvolume create /root/var/cache/apt/archives || return