From 9d7395ae0fe42bb45e1478513a2d7e9db257db79 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 24 Aug 2020 08:54:48 -0400 Subject: code cleanup --- initramfs-tools/scripts/samizdat | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'initramfs-tools/scripts') diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index ddcb64c..51f7cec 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat @@ -30,6 +30,8 @@ mountroot() bootdone nbd-script) wait_for_gnupghome_tar + (sleep 5; echo ) & + (. common.sh && . btrfs-create.sh && init_gpg) fi bootmenu @@ -44,26 +46,16 @@ mountroot() chvt 1 } -cdrom_has_keys() -{ - [ ! "$BOOTIF" ] || return - bootwait samizdat-cdrom - [ -d /cdrom/gnupghome ] -} - wait_for_gnupghome_tar() { [ -e /gnupghome.tar ] && return echo -n Waiting to receive GPG keys through the network... > /dev/tty1 - my_configure_networking (while ! tftp -g -r gnupghome.tar -l /gnupghome.tar.$$ "$ROOTSERVER" 2>/run/initramfs/samizdat/log/tftp.$$.log; do sleep 1; echo -n . > /dev/tty1 done mv /gnupghome.tar.$$ /gnupghome.tar) echo ' done.' > /dev/tty1 - (sleep 5; echo ) & - (. common.sh && . btrfs-create.sh && init_gpg) } samizdat_restart_udev() -- cgit v1.2.3