r1k0 / kigen

a decent Python3 Kernel|Initramfs generator for Portage (Gentoo/Funtoo/Sabayon/Exherbo/VidaLinux/Calculate)
1 stars 0 forks source link

bin-dropbear fails to work #14

Closed andrewg-felinemenace closed 13 years ago

andrewg-felinemenace commented 13 years ago

""" class dropbear:

def __init__(self, cli, libdir, temp, verbose):

"""

appears as if libdir is not passed to the init function

r1k0 commented 13 years ago

Thank you and my sincere apologies for such a lame mistake, probably too much copy/paste from other functions.

It's now fixed in git, will bump 0.4.2 very soon.

r1k0 commented 13 years ago

Note that there is --dynlibs option if you have merged dropbear with -static.

Let me know how it works actually I think I've never tested the binary version myself.

andrewg-felinemenace commented 13 years ago

grep -v ^# /etc/kigen/initramfs/default.conf | grep -v ^\$ linuxrc = dotconfig = defconfig = True oldconfig = True menuconfig = False splash = sres = bin-busybox = True bin-disklabel = True source-disklabel = False bin-evms = False bin-luks = True source-luks =False bin-lvm2 = True source-lvm2 = False bin-dmraid = False source-dmraid = False bin-dropbear = True source-dropbear = False debugflag = False rootpasswd = keymaps = all source-ttyecho= True bin-strace = True source-strace = False bin-screen = False source-screen = False plugin = /etc/kigen/plugins bin-glibc = True bin-libncurses = True bin-zlib = True bin-all = False source-all = False dynlibs = True nomodules = True nocache = False hostbin = True noboot = False rename =

is my configuration for what it's worth. dropbear is dynamic, but compiled without pam support, so that works fine.

There appears to be another bug I think. Creating a plugins directory of "root/.ssh/authorized_keys" doesn't seem to copy over the authorized_keys file as you'd expect. The /root/.ssh is empty

r1k0 commented 13 years ago

Thanks again! ;) --plugin works again. It uses rsync instead of cp until I find the correct cp options.