As well as client-driven approach also the server-driven way needs the creation
of a client boot package. In this case instead of including the SSH private key
(used to connect to the image server), we must include the authorized_keys file,
because it's the image server that will open the SSH tunnels to the clients.
To create a boot package with BOEL run the following command on your image
server:
# mkdir /tmp/boot-package
# si_mkbootpackage --destination /tmp/boot-package --kernel \
/usr/share/systemimager/boot/i386/standard/kernel --filesystem cramfs \
--authorized-keys ~foo/.ssh/id_dsa.pub --yes |
Remember to replace i386 with the architecture of your clients to get the
correct kernel (e.g. x86_64).
Or with UYOK:
# mkdir /tmp/uyok-boot-package
# si_mkbootpackage --destination /tmp/boot-package --image YOUR_IMAGE \
--authorized-keys ~foo/.ssh/id_dsa.pub --yes |
After that you will find the kernel+initrd.img to be used for the imaging into
the destination directory (/tmp/boot-package).