summaryrefslogtreecommitdiff
path: root/initramfs-tools
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-01 03:30:20 -0400
committerAndrew Cady <d@jerkface.net>2016-05-01 03:30:20 -0400
commit38e2aaaa634eb731c9221bee522958334b4fc7e9 (patch)
tree5ae29976ec1b82947dc29bea46e7ec24a7fa412f /initramfs-tools
parent06dc6f6c4b662f798d4f4221fd110b33e768d3ce (diff)
Download gnupghome.tar when net-booting
This contains a keyring that is generated on the server for each client that netboots.
Diffstat (limited to 'initramfs-tools')
-rw-r--r--initramfs-tools/scripts/samizdat11
1 files changed, 11 insertions, 0 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat
index 232e3ac..374979f 100644
--- a/initramfs-tools/scripts/samizdat
+++ b/initramfs-tools/scripts/samizdat
@@ -7,11 +7,22 @@ mountroot()
7 samizdat_install_udev_rules 7 samizdat_install_udev_rules
8 mkfifo "$MENUFIFO" 8 mkfifo "$MENUFIFO"
9 sh /scripts/local-top/nbd & # I guess this isn't getting called otherwise? 9 sh /scripts/local-top/nbd & # I guess this isn't getting called otherwise?
10 wait_for_gnupghome_tar
10 bootmenu 11 bootmenu
11 bootwait root-mounted 12 bootwait root-mounted
12 chvt 1 13 chvt 1
13} 14}
14 15
16wait_for_gnupghome_tar()
17{
18 [ -e /gnupghome.tar ] && return
19 [ "${nbdroot%%,*}" ] || return
20 (while ! tftp -g -r gnupghome.tar -l /gnupghome.tar.$$ ${nbdroot%%,*}; do
21 sleep 1;
22 done
23 mv /gnupghome.tar.$$ /gnupghome.tar)
24}
25
15samizdat_install_udev_rules() 26samizdat_install_udev_rules()
16{ 27{
17 mkdir -p /etc/udev/rules.d 28 mkdir -p /etc/udev/rules.d