This website requires JavaScript.
Explore
Help
Register
Sign In
sig_cloud
/
diskimage-builder
Watch
2
Star
0
Fork
0
You've already forked diskimage-builder
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
19ecc16d97
diskimage-builder
/
diskimage_builder
/
elements
/
dynamic-login
/
element-deps
4 lines
46 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add dynamic-login element Troubleshooting an image can be quite hard, specially if you can not get a prompt you can enter commands to find out what went wrong. By default, the images (specially ramdisks) doesn't have any SSH key or password for any user. Of course one could use the ``devuser`` element to generate an image with SSH keys and user/password in the image but that would be a massive security hole and very it's discouraged to run in production with a ramdisk like that. This commit is adding a new element called dynamic-login, which inserts a helper script into the image to allow operators to inject a SSH key and/or change the root password dynamically when it boots via parameters in the kernel command line. Those parameters are: sshkey = If the operator append sshkey="$PUBLIC_SSH_KEY" to the kernel command line on boot, the helper script will append this key to the root user authorized_keys. rootpwd = If the operator append rootpwd="$ENCRYPTED_PASSWORD" to the kernel command line on boot, the helper script will set the root password to the one specified by this option. Note that this password should be an encrypted password. Change-Id: I6b87a1b90163d79745f30dfacd37516051fa0aea
2015-11-12 18:06:57 +00:00
dib-init-system
install-static
elements: Add new openssh-server element Add new 'openssh-server' element to ensure that openssh server is installed and enabled during boot. This is mostly useful for *-minimal images which do not come with openssh installed and/or enabled in order to keep a small dependency footprint. Change-Id: Ide15ee04f5de123dbc8ce4bb56d638d8a167c341
2016-10-18 22:21:07 +00:00
openssh-server
Reference in New Issue
Copy Permalink