forked from ungleich-public/cdist
generate ssh keys
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
9d35be6acd
commit
cc144d9e8f
5 changed files with 38 additions and 53 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
here=$(pwd -P)
|
||||
|
||||
initramfs_dir=$(mktemp -d /tmp/cdist-preos.XXXXXXX)
|
||||
# initramfs_dir=$1
|
||||
|
|
@ -22,10 +23,10 @@ cd "${initramfs_dir}"
|
|||
# Add Arch Linux initramfs with kernel modules included
|
||||
zcat /boot/initramfs-linux-fallback.img | cpio -i
|
||||
|
||||
# TODO:
|
||||
# - ssh
|
||||
# - various mkfs
|
||||
# - libs
|
||||
# Add helper binaries
|
||||
"$here/copy_bin_with_libs.sh" "$initramfs_dir" >/dev/null 2>&1
|
||||
"$here/sshd_config.sh" "$initramfs_dir"
|
||||
|
||||
|
||||
# Create new initramfs
|
||||
find . | cpio -H newc -o | gzip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue