diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-22 13:40:48 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-22 13:40:48 -0400 |
commit | 95973675ae78e9c9eaefb4472072275493371cdf (patch) | |
tree | 1533b3e73a12352705dd15005f79d76561867a1f /old-school/lvm-create.sh | |
parent | a605ac10973b145e1121c858d3955bd4ef7103b1 (diff) |
move gnupghome onto installed fs root
Diffstat (limited to 'old-school/lvm-create.sh')
-rw-r--r-- | old-school/lvm-create.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh index ba79e0c..44873ef 100644 --- a/old-school/lvm-create.sh +++ b/old-school/lvm-create.sh | |||
@@ -66,6 +66,20 @@ init_samizdat() | |||
66 | mount -t btrfs -o subvol=ROOT /cdrom/live/filesystem.btrfs /root || return | 66 | mount -t btrfs -o subvol=ROOT /cdrom/live/filesystem.btrfs /root || return |
67 | btrfs device add "$blockdev" /root || return | 67 | btrfs device add "$blockdev" /root || return |
68 | mount -o rw,remount /root || return | 68 | mount -o rw,remount /root || return |
69 | btrfs subvolume create /root/gpg || return | ||
70 | # TODO: Restart gpg agent with stored credentials. | ||
71 | |||
72 | # TODO: Actually, if we unconditionally added a ramdisk, we could go | ||
73 | # ahead with the boot, and then do this whole thing from the installed | ||
74 | # system (after pivot_root). That way, there would be no need to | ||
75 | # restart. | ||
76 | |||
77 | # Really, the option to install could be identical to the option to | ||
78 | # boot from RAM except that it would record the intent to install; or | ||
79 | # else it could be removed entirely, with an option to persist added | ||
80 | # as some kind of UI element. | ||
81 | mv /gpg/gnupghome /root/gpg/ || return | ||
82 | |||
69 | bootdone root-mounted | 83 | bootdone root-mounted |
70 | } | 84 | } |
71 | 85 | ||