zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

0.6.5.2-2-wheezy Debian init scripts have a loop between zfs-mount and zfs-import if stopped #179

Closed ghost closed 8 years ago

ghost commented 8 years ago

Something about installing 0.6.5.2-2-wheezy as an upgrade from 0.6.4-1.2-1-wheezy on Debian Wheezy causes the init scripts to have "a loop between service zfs-mount and zfs-import if stopped", which prevents the installation from succeeding.

Partial output from running apt-get upgrade:

*** zed.rc (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/zfs/zed.d/zed.rc ...
insserv: There is a loop between service zfs-mount and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 3
insserv:  loop involving service zfs-mount at depth 2
insserv:  loop involving service pulseaudio at depth 1
insserv:  loop involving service networking at depth 2
insserv:  loop involving service umountfs at depth 12
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing zfsutils (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of zfs-initramfs:
 zfs-initramfs depends on zfsutils; however:
  Package zfsutils is not configured yet.

dpkg: error processing zfs-initramfs (--configure):
 dependency problems - leaving unconfigured
Setting up zfs-dkms (0.6.5.2-2-wheezy) ...
Loading new zfs-0.6.5.2 DKMS files...
Building only for 3.2.0-4-amd64

Errors were encountered while processing:
 zfsutils
 zfs-initramfs
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried to perform both a straight upgrade as well as deleting the /etc/init.d/zfs* scripts first and retrying the installation, but get the same result each time.

dpkg-reconfigure after the apt-get upgrade finishes as above simply states that both named packages are broken.

Manually running update-rc.d gives the same error output.

I can restore normal functionality by downgrading back to the 0.6.4-1.2-1-wheezy packages and restoring all relevant configuration files, with only trivial warnings from insserv:

Setting up zfsutils (0.6.4-1.2-1-wheezy) ...
insserv: warning: current start runlevel(s) (S) of script `zfs-mount' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 6) of script `zfs-mount' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (S) of script `zfs-mount' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 6) of script `zfs-mount' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (S) of script `zfs-mount' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 6) of script `zfs-mount' overrides LSB defaults (0 1 6).
Processing triggers for initramfs-tools ...
C-Duv commented 8 years ago

I have the same issue:

aptitude upgrade
Les paquets partiellement installés suivants seront configurés : 
  openmediavault-zfs php5-fpm 
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o seront utilisés.
Paramétrage de php5-fpm (5.4.45-0+deb7u2) ...
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement de php5-fpm (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Paramétrage de openmediavault-zfs (0.6.4) ...
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
update-rc.d: using dependency based boot sequencing
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement de openmediavault-zfs (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Traitement des actions différées (« triggers ») pour « openmediavault »...
Restarting engine daemon ...
Des erreurs ont été rencontrées pendant l'exécution :
 php5-fpm
 openmediavault-zfs
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Échec de l'installation d'un paquet. Tentative de réparation : 
Paramétrage de openmediavault-zfs (0.6.4) ...
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
update-rc.d: using dependency based boot sequencing
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement de openmediavault-zfs (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Paramétrage de php5-fpm (5.4.45-0+deb7u2) ...
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service zfs-import at depth 5
insserv:  loop involving service zvol at depth 4
insserv: There is a loop between service umountfs and zfs-import if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv:  loop involving service umountroot at depth 6
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: erreur de traitement de php5-fpm (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Traitement des actions différées (« triggers ») pour « openmediavault »...
Restarting engine daemon ...
Des erreurs ont été rencontrées pendant l'exécution :
 openmediavault-zfs
 php5-fpm

Using Debian 7.9 on 3.2.0-4-amd64 with zfsonlinux v0.6.5.2-2-wheezy.

FransUrbo commented 8 years ago

Is this still a problem with the latest 0.6.5.6-7?

C-Duv commented 8 years ago

Problem seems to be fixed on version 0.6.5.6-3 (on my Debian Wheezy).

FransUrbo commented 8 years ago

Closing as fixed.

spacelama commented 8 years ago

Still broken for me having just extracted the init.d scripts from ZoL zfsutils_0.6.5.7-8-jessie_amd64.deb

spacelama commented 8 years ago

Ignore me - pebcak with old override in /etc/insserv.conf where I was trying to solve previous problems with boot order.