Bug#584780: dropbear script for initramfs-tools breaks DHCP server.

50 views
Skip to first unread message

Taisuke Yamada

unread,
Jun 6, 2010, 10:30:02 AM6/6/10
to
Package: dropbear
Version: 0.52-4
Severity: important

When installed to DHCP server (running dnsmasq), initramfs-tools script
that comes with dropbear breaks DHCP server by overwriting own IP address
with DHCP-assigned (= self-assigned) address.

Following code in "/usr/share/initramfs-tools/scripts/init-premount/dropbear"
is causing delayed DHCP assignment by "ipconfig" command invoked from
"configure_networking" shell function.

configure_networking &
mkdir -p /var/run
/sbin/dropbear

This is a problem because if you install dropbear to DHCP server,
this background task will wait for oneself to come up, and then
rewrites own IP address.

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.utf8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages dropbear depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

dropbear recommends no packages.

Versions of packages dropbear suggests:
ii openssh-client 1:5.3p1-1 secure shell (SSH) client, for sec
ii runit 2.1.1-3 system-wide service supervision
ii udev 150-2 /dev/ and hotplug management daemo
ii xauth 1:1.0.4-1 X authentication utility

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Gerrit Pape

unread,
Mar 30, 2011, 11:10:02 AM3/30/11
to
Hi,

I'm about to upload a new dropbear package to Debian eventually.

Can you take a look at #584780 and #557107, two reports concerning the
initramfs integration? If you have changes that should go into the
Debian package, please post them to the bug log.

Thanks, Gerrit.

deb...@x.ray.net

unread,
May 4, 2011, 8:00:04 AM5/4/11
to
hi!

> I'm about to upload a new dropbear package to Debian eventually.

[...]

i'm terribly sorry, but the notification-mail has been sorted out as spam and i found out about it just now. looks like a spamassassin-problem introduced some time ago - maybe some sort of obscure hint to upgrade my etch mailserver... >;)

> On Sun, Jun 06, 2010 at 11:06:52PM +0900, Taisuke Yamada wrote:
>> Package: dropbear
>> Version: 0.52-4
>> Severity: important
>>
>> When installed to DHCP server (running dnsmasq), initramfs-tools script
>> that comes with dropbear breaks DHCP server by overwriting own IP address
>> with DHCP-assigned (= self-assigned) address.

if it's configured that way - yes (which is also the default, and we had the discussion already, this is probably the way to go. please feel free to discuss if you think it's the wrong way).
to disable the dhcp client, add ip=none (no ip in initrd) or a static ip=... configuration to the kernel parameters.

>> Following code in "/usr/share/initramfs-tools/scripts/init-premount/dropbear"
>> is causing delayed DHCP assignment by "ipconfig" command invoked from
>> "configure_networking" shell function.

(just btw, iirc configure_networking is a 'library function' used by other initrd and networking related packages)

regards,

Chris

Reply all
Reply to author
Forward
0 new messages