[Pkg-sysvinit-devel] [initscripts] kFreeBSD flavour should carry /sys dir

Aurelien Jarno aurelien at aurel32.net
Sun Jun 14 17:00:15 UTC 2009

tag 525787 + patch

On Mon, Apr 27, 2009 at 04:24:23AM -0300, Dererk wrote:
> Package: initscripts
> Version: 2.86.ds1-61
> Severity: normal
> It appears that initscripts package for kFreeBSD flavours doesn't carry
> /sys directory, which turns into conflicts with another packages postinst.
> Setting up freebsd-utils (7.1-5) ...
> Installing new version of config file /etc/init.d/freebsd-utils ...
> Setting up /dev permissions...done.
> kern.module_path: /lib/modules/7.1-1-486;/boot/kernel ->
> /lib/modules/7.1-1-486;/boot/kernel
> mount: /sys: No such file or directory
> invoke-rc.d: initscript freebsd-utils, action "start" failed.
> dpkg: error processing freebsd-utils (--configure):
>  subprocess post-installation script returned error exit status 64
> Errors were encountered while processing:
>  freebsd-utils
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> As in another Debian flavours, seems /sys directory creation should be
> carried on initscripts package.

I confirm. Please find a simple patch to do that below.

diff -u sysvinit-2.86.ds1/debian/rules sysvinit-2.86.ds1/debian/rules
--- sysvinit-2.86.ds1/debian/rules
+++ sysvinit-2.86.ds1/debian/rules
@@ -178,7 +178,7 @@
 	-rm -rf $(tmp)
 	install -d -o root -g root -m 755 $(tmp)
 	install -d -o root -g root -m 755 $(tmp)/{DEBIAN,sbin,lib,etc}
-ifeq ($(DEB_HOST_ARCH_OS),linux)
+ifneq (,$(findstring $(DEB_HOST_ARCH_OS),linux kfreebsd))
 	install -d -o root -g root -m 755 $(tmp)/sys
 	install -d -o root -g root -m 755 $(tmp)/lib/init

Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien at aurel32.net                 http://www.aurel32.net

More information about the Pkg-sysvinit-devel mailing list