https://bugzilla.novell.com/show_bug.cgi?id=770621
https://bugzilla.novell.com/show_bug.cgi?id=770621#c1
--- Comment #1 from Marcus Schaefer 2012-07-16 10:33:36 UTC ---
commit e7d92233f49ce01e6c32cd12b87331dcdf180bf9
Author: Marcus Schäfer
Date: Mon Jul 16 11:57:02 2012 +0200
- added support for ssh access into the boot image (initrd). Of
course this requires an active network connection which is by
design possible in the netboot and oemboot (in PXE boot mode)
boot images. So the following is not supported for the isoboot
and vmxboot boot images because they don't setup a network.
The feature is based on the dropbear ssh server because it's
so small to fit into an initrd. In order to have dropbear in
the boot image you have to add the following to the system
image configuration:
<packages type="image">
<package name="dropbear" bootinclude="true"/>
</packages>
and make sure one of your repos provides it. It's required to
be in debug mode to be able to access the initrd. Thus you
have to boot with 'kiwidebug=1' enabled. In order to access
the initrd passwordless via ssh kiwi provides a key pair
whereas the pubkey is stored in the authorized_keys file
inside the oem- and netboot images for all supported OS
versions:
ssh -i /usr/share/kiwi/keys/id_dropbear root@<ip>
For openSUSE >= 12.2 rsync is available in the netboot and
oemboot boot images. For older versions it might be required
to add tool packages bootincluded to be able to extract
data from the boot image via ssh easily. In order to copy
e.g the boot log file the following command can be used
if rsync exists in the boot image:
RSYNC_RSH='ssh -i /usr/share/kiwi/keys/id_dropbear -l root'
rsync -avz <ip>:/var/log/boot.kiwi .
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.