From 95973675ae78e9c9eaefb4472072275493371cdf Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 22 Apr 2016 13:40:48 -0400 Subject: move gnupghome onto installed fs root --- old-school/lvm-create.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'old-school') 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() mount -t btrfs -o subvol=ROOT /cdrom/live/filesystem.btrfs /root || return btrfs device add "$blockdev" /root || return mount -o rw,remount /root || return + btrfs subvolume create /root/gpg || return + # TODO: Restart gpg agent with stored credentials. + + # TODO: Actually, if we unconditionally added a ramdisk, we could go + # ahead with the boot, and then do this whole thing from the installed + # system (after pivot_root). That way, there would be no need to + # restart. + + # Really, the option to install could be identical to the option to + # boot from RAM except that it would record the intent to install; or + # else it could be removed entirely, with an option to persist added + # as some kind of UI element. + mv /gpg/gnupghome /root/gpg/ || return + bootdone root-mounted } -- cgit v1.2.3