[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#695679: freebsd-utils: Init script fails in jail, breaks dist-upgrade



Control: tags -1 + confirmed patch
Control: severity -1 important

On 11/12/12 16:20, Stefan Ott wrote:
> Setting up freebsd-utils (9.0+ds1-8) ...
> Installing new version of config file /etc/init.d/freebsd-utils ...
> [....] Loading devfs rules...devfs ruleset: ioctl DEVFSIO_SUSE:
> Operation not permitted
> invoke-rc.d: initscript freebsd-utils, action "start" failed.
> dpkg: error processing freebsd-utils (--configure):
>  subprocess installed post-installation script returned error exit
>  status 1
>  configured to not write apport reports
>  Errors were encountered while processing:
>  freebsd-utils
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi!

This is reproducible in jails on 'native' Debian GNU/kFreeBSD as well.

I think it may be better if the initscript just warns if devfs seems
unavailable, and exit with status 0;  in a jail with default settings
the rest of the initscript (e.g. mounting kernel filesystems) can't
function anyway.

With a change I just committed to SVN it now looks like this:

# /etc/init.d/freebsd-utils start
[....] Loading devfs rules...devfs ruleset: ioctl DEVFSIO_SUSE:
Operation not permitted
 (warning).
# echo $?
0

Please review/test this change if you can:

http://anonscm.debian.org/viewvc/glibc-bsd/trunk/freebsd-utils/debian/freebsd-utils.init?r1=3414&r2=4376&view=patch

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: