[Pkg-samba-maint] Bug#695362: samba-common's dhcp hooks write to /etc/samba breaking ro root
Andrew Shadura
bugzilla at tut.by
Fri Dec 7 15:22:43 UTC 2012
Package: samba-common
Version: 2:3.6.6-2
Severity: normal
samba-common provides a dhcp-client hook script,
/etc/dhcp3/dhclient-enter-hooks.d/samba, which apparently writes to /etc
thus breaking boot when the rootfs is read-only.
SAMBA_DHCP_CONF=/etc/samba/dhcp.conf
<...>
echo -n > ${SAMBA_DHCP_CONF}.new
<...>
mv ${SAMBA_DHCP_CONF}.new $SAMBA_DHCP_CONF
It'd be cool if that could be disabled via /etc/defaults, or, better, if
it could detect that location not being writable and not try to write
there if it is.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.6-trunk-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages samba-common depends on:
ii debconf [debconf-2.0] 1.5.41
ii ucf 3.0016
Versions of packages samba-common recommends:
ii samba-common-bin 2:3.5.6~dfsg-1
samba-common suggests no packages.
-- debconf information excluded
More information about the Pkg-samba-maint
mailing list