diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-27 04:32:28 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-27 04:32:28 -0400 |
commit | 128ae7272f6c85ef0f703f9384704a0d6f75522c (patch) | |
tree | 53795adf5ac2eea353d2376efa614d45e5f67bcc /old-school | |
parent | 2f133578fd7f6060d7eb7e6cbc75f6f7cc9c93ac (diff) |
put /root in separate btrfs snapshot
Diffstat (limited to 'old-school')
-rw-r--r-- | old-school/lvm-create.sh | 5 |
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 | ||
62 | initialize_root_filesystem() | 62 | initialize_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 |