Control: tags -1 unreproducible

Lucas,

Thanks for this. However, I am currently unable to repoduce this failure in my
customary pbuilder setup. And it doesn't appear at reproducible builds either[1]

On Tue, Sep 26, 2023 at 03:45:26PM +0200, Lucas Nussbaum wrote:
> If you fail to reproduce this, please provide a build log and diff it with 
> mine
> so that we can identify if something relevant changed in the meantime.

My successful pbuilder log is attached.

Mark


[1]  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/insserv.html

dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 13) 
po-debconf
W: Unmet build-dependency in source
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying install-binaries-ignore-PREFIX.patch
dpkg-source: info: applying 11_debian_conf.patch
dpkg-source: info: applying 110_portmap.patch
dpkg-source: info: applying warn_in_ignore_mode.patch
dpkg-source: info: applying 
0004-Fix-spurious-warnings-about-unknown-virtual-dependen.patch
dpkg-source: info: applying 0005-Fix-spelling-error-in-manpage.patch
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building insserv using existing ./insserv_1.24.0.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building insserv in insserv_1.24.0-1.debian.tar.xz
dpkg-source: info: building insserv in insserv_1.24.0-1.dsc
I: Generated dsc will be overwritten by build result; not generating changes 
file
dpkg-source: info: unapplying 0005-Fix-spelling-error-in-manpage.patch
dpkg-source: info: unapplying 
0004-Fix-spurious-warnings-about-unknown-virtual-dependen.patch
dpkg-source: info: unapplying warn_in_ignore_mode.patch
dpkg-source: info: unapplying 110_portmap.patch
dpkg-source: info: unapplying 11_debian_conf.patch
dpkg-source: info: unapplying install-binaries-ignore-PREFIX.patch
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.20068
I: forking: cp -al /var/cache/pbuilder/base-sid.cow 
/var/cache/pbuilder/build/cow.20068
I: removed stale ilistfile /var/cache/pbuilder/build/cow.20068/.ilist
I: forking: chroot /var/cache/pbuilder/build/cow.20068 cowdancer-ilistcreate 
/.ilist 'find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a 
-links +1 -print0 \) | xargs -0 stat --format '%d %i ''
I: Invoking pbuilder
I: forking: pbuilder build --debbuildopts  --debbuildopts '  '--no-pre-clean'' 
--buildplace /var/cache/pbuilder/build/cow.20068 --buildresult 
/home/mark/src/debian/build --mirror http://deb.debian.org/debian 
--distribution sid --no-targz --internal-chrootexec 'chroot 
/var/cache/pbuilder/build/cow.20068 cow-shell' 
/home/mark/src/debian/build/insserv_1.24.0-1.dsc
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Tue Sep 26 17:05:48 BST 2023
I: pbuilder-time-stamp: 1695744348
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for 
details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [/home/mark/src/debian/build/insserv_1.24.0-1.dsc]
I: copying [/home/mark/src/debian/build/insserv_1.24.0.orig.tar.gz]
I: copying [/home/mark/src/debian/build/insserv_1.24.0-1.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (insserv_1.24.0-1.dsc)
dpkg-source: info: extracting insserv in insserv-1.24.0
dpkg-source: info: unpacking insserv_1.24.0.orig.tar.gz
dpkg-source: info: unpacking insserv_1.24.0-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying install-binaries-ignore-PREFIX.patch
dpkg-source: info: applying 11_debian_conf.patch
dpkg-source: info: applying 110_portmap.patch
dpkg-source: info: applying warn_in_ignore_mode.patch
dpkg-source: info: applying 
0004-Fix-spurious-warnings-about-unknown-virtual-dependen.patch
dpkg-source: info: applying 0005-Fix-spelling-error-in-manpage.patch
I: using fakeroot in build.
I: Installing the build-deps
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/D04add-backports 
starting
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/D04add-backports 
finished
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/D05apt-update 
starting

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://deb.debian.org/debian unstable InRelease [195 kB]
Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index 
[63.6 kB]
Ign:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index
Get:3 http://deb.debian.org/debian unstable/main Translation-en.diff/Index 
[63.6 kB]
Ign:3 http://deb.debian.org/debian unstable/main Translation-en.diff/Index
Get:4 http://deb.debian.org/debian unstable/main amd64 Packages [9512 kB]
Get:5 http://deb.debian.org/debian unstable/main Translation-en [7032 kB]
Fetched 16.9 MB in 10s (1747 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
176 packages can be upgraded. Run 'apt list --upgradable' to see them.
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/D05apt-update 
finished
I: user script 
/var/cache/pbuilder/build/cow.20068/tmp/hooks/D80no-man-db-rebuild starting
I: Preseed man-db/auto-update to false
I: user script 
/var/cache/pbuilder/build/cow.20068/tmp/hooks/D80no-man-db-rebuild finished
I: -> Attempting to satisfy build-dependencies
Note, using file '/build/insserv_1.24.0-1.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bash-completion
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 1 newly installed, 0 to remove and 176 not upgraded.
Need to get 0 B/224 kB of archives.
After this operation, 1489 kB of additional disk space will be used.
Selecting previously unselected package bash-completion.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23021 files and directories currently installed.)
Preparing to unpack .../bash-completion_1%3a2.11-8_all.deb ...
Unpacking bash-completion (1:2.11-8) ...
Setting up bash-completion (1:2.11-8) ...
Processing triggers for man-db (2.11.2-2) ...
Not building database; man-db/auto-update is not 'true'.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libfakeroot
The following packages will be upgraded:
  fakeroot libfakeroot
debconf: delaying package configuration, since apt-utils is not installed
2 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
Need to get 0 B/95.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23787 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.32.1-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.32.1-1) over (1.31-1.2) ...
Preparing to unpack .../fakeroot_1.32.1-1_amd64.deb ...
Unpacking fakeroot (1.32.1-1) over (1.31-1.2) ...
Setting up libfakeroot:amd64 (1.32.1-1) ...
Setting up fakeroot (1.32.1-1) ...
Processing triggers for man-db (2.11.2-2) ...
Not building database; man-db/auto-update is not 'true'.
Processing triggers for libc-bin (2.36-9) ...
I: Copying back the cached apt archive contents
I: Building the package
I: Running cd /build/insserv-1.24.0/ && env 
PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us 
-uc   '--no-pre-clean' && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" 
HOME="/nonexistent" dpkg-genchanges -S  > ../insserv_1.24.0-1_source.changes
dpkg-buildpackage: info: source package insserv
dpkg-buildpackage: info: source version 1.24.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Mark Hindley <lee...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules build
echo -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. -fstack-protector-strong 
-Wformat -Werror=format-security 
-g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. -fstack-protector-strong 
-Wformat -Werror=format-security
dh build --with=bash-completion
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
        make -j2 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/insserv-1.24.0'
sed -r '\!@@BEGIN_SUSE@@!,\!@@(ELSE|END)_SUSE@@!d;\!@@(NOT|END)_SUSE@@!d' < 
insserv.8.in > insserv.8
cc -W -Wall -Wunreachable-code -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. 
-fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time 
-D_FORTIFY_SOURCE=2   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  
-DINITDIR=\"/etc/init.d\" -DINSCONF=\"/etc/insserv.conf\" -pipe   -c map.c
cc -W -Wall -Wunreachable-code -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. 
-fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time 
-D_FORTIFY_SOURCE=2   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  
-DINITDIR=\"/etc/init.d\" -DINSCONF=\"/etc/insserv.conf\" -pipe   -c listing.c
cc -W -Wall -Wunreachable-code -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. 
-fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time 
-D_FORTIFY_SOURCE=2   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  
-DINITDIR=\"/etc/init.d\" -DINSCONF=\"/etc/insserv.conf\" -pipe   insserv.c -c 
insserv.c: In function 'main':
insserv.c:2923:20: warning: ignoring return value of 'asprintf' declared with 
attribute 'warn_unused_result' [-Wunused-result]
 2923 |                    asprintf(&dependency_path, "%s/.", optarg);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
insserv.c:2927:20: warning: ignoring return value of 'getcwd' declared with 
attribute 'warn_unused_result' [-Wunused-result]
 2927 |                    getcwd(current_dir, PATH_MAX);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
insserv.c:2928:20: warning: ignoring return value of 'asprintf' declared with 
attribute 'warn_unused_result' [-Wunused-result]
 2928 |                    asprintf(&dependency_path, "%s/%s/.", current_dir, 
optarg);
      |                    
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -W -Wall -Wunreachable-code -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. 
-fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time 
-D_FORTIFY_SOURCE=2   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  
-DINITDIR=\"/etc/init.d\" -DINSCONF=\"/etc/insserv.conf\" -pipe -Wl,-z,relro 
-Wl,-z,now  -o insserv insserv.o listing.o map.o 
make[1]: Leaving directory '/build/insserv-1.24.0'
   dh_auto_test
        make -j2 check
make[1]: Entering directory '/build/insserv-1.24.0'
rm -rf tests/root/
cd tests && ./common

info: test simple script ordering.

insserv.conf

init.d:
firstscript
lastscript
middlescript

rc0.d:

rc1.d:

rc2.d:
S01firstscript
S02middlescript
S03lastscript

rc3.d:
S01firstscript
S02middlescript
S03lastscript

rc4.d:
S01firstscript
S02middlescript
S03lastscript

rc5.d:
S01firstscript
S02middlescript
S03lastscript

rc6.d:

rcS.d:

info: test if loop involving virtual facility is detected.

insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service mountall at depth 1
insserv: There is a loop between service hibernate-cleanup and mdadm if started
insserv: exiting now without changing boot order!
insserv.conf:
$local_fs       mountall
insserv.conf

init.d:
hibernate
mdadm
mountall.sh

rc0.d:

rc1.d:

rc2.d:

rc3.d:
S01hibernate
S02mountall.sh

rc4.d:

rc5.d:

rc6.d:

rcS.d:
success: 7 test executed, 0 nonfatal tests failed.
cd tests && severity=check ./run-testsuite

info: test normal boot sequence scripts, and their order

insserv: Could not read script nolsbheader: No such file or directory
insserv: warning: script 'nolsbheader' missing LSB tags
insserv: Could not read script nolsbheader: Success
insserv: warning: script 'nolsbheader' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`nolsbheader'
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script 
`nolsbheader'
insserv.conf

init.d:
beforenfs
checkfs.sh
checkroot.sh
halt
hwclock.sh
ifupdown
ifupdown-clean
kexec
killprocs
mountall.sh
mountdevsubfs.sh
mountkernfs.sh
mountnfs.sh
needallfs
needallfs2
needlocalfs
networking
nolsbheader
reboot
single
sysklogd
umountfs
umountnfs
umountroot

rc0.d:
K01hwclock.sh
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
K02umountnfs
K03networking
K04ifupdown
K05umountfs
K06umountroot
K07halt

rc1.d:
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
S01killprocs
S02single

rc2.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc3.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc4.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc5.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc6.d:
K01hwclock.sh
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
K02umountnfs
K03networking
K04ifupdown
K05umountfs
K06umountroot
K07kexec
K08reboot

rcS.d:
S01mountkernfs.sh
S02mountdevsubfs.sh
S03checkroot.sh
S04checkfs.sh
S05hwclock.sh
S05ifupdown-clean
S05mountall.sh
S06beforenfs
S06ifupdown
S07networking
S08mountnfs.sh

info: test if override files replace headers in the file

insserv.conf

init.d:
base
mover

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01mover
S02base

info: testing to insert scripts with a loop, and the effect of an override file

insserv: FATAL: service loop2 has to be enabled to use service loop1
insserv: exiting now!
insserv: FATAL: service loop1 has to be enabled to use service loop2
insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop1 at depth 2
insserv:  loop involving service loop2 at depth 1
insserv: There is a loop between service loop1 and loop2 if started
insserv: exiting now without changing boot order!

info: Try to reproduce BTS #540866

insserv.conf

init.d:
testscript

insserv:
override

rc0.d:
K01testscript

rc1.d:
K01testscript

rc2.d:
S01testscript

rc3.d:

rc4.d:
S01testscript

rc5.d:
S01testscript

rc6.d:
K01testscript

rcS.d:
info: Trying to remove the script
insserv.conf

init.d:
testscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: testing to insert scripts with a longer loop, making sure it fail

insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop1 at depth 3
insserv:  loop involving service loop3 at depth 2
insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop2 at depth 1
insserv: There is a loop between service loop1 and loop3 if started
insserv: exiting now without changing boot order!

info: test handling of loops in the combination of start and stop sequences

insserv.conf

init.d:
startfirst
startsecond

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startsecond
K02startfirst

rcS.d:
S01startfirst
S02startsecond

info: test handling of 'fake' loops in the combination of start and stop 
sequences

insserv.conf

init.d:
startfirst_stopfirst
startsecond_stoplast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startfirst_stopfirst
K02startsecond_stoplast

rcS.d:
S01startfirst_stopfirst
S02startsecond_stoplast

info: test handling of 'fake' loops using reverse depends

insserv.conf

init.d:
startfirst_stopfirst
startsecond_stoplast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startfirst_stopfirst
K02startsecond_stoplast

rcS.d:
S01startfirst_stopfirst
S02startsecond_stoplast

info: test if bad script in init.d/ with no symlinks in rc*.d/ make problems

insserv.conf

init.d:
distroglobal
sitelocal

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01distroglobal

rcS.d:
S01distroglobal

info: check that it work to insert scripts with only start runlevels

insserv.conf

init.d:
onlystart

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01onlystart

rc3.d:
S01onlystart

rc4.d:
S01onlystart

rc5.d:
S01onlystart

rc6.d:

rcS.d:

info: check that it work to insert scripts with only stop runlevels

insserv.conf

init.d:
onlystop

insserv:
override

rc0.d:
K01onlystop

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01onlystop

rcS.d:

info: test if script removal removes all symlinks.

insserv.conf

init.d:
oldscript

insserv:
override

rc0.d:

rc1.d:
K01oldscript

rc2.d:
S01oldscript

rc3.d:

rc4.d:
S01oldscript

rc5.d:
S01oldscript

rc6.d:

rcS.d:

info: detect segfault caused by script providing virtual facility.

insserv: script badheaderscript provides system facility $syslog, skipped!
insserv: script badheaderscript provides system facility $syslog, skipped!
insserv: script S02badheaderscript provides system facility $syslog, skipped!
insserv: script badheaderscript provides system facility $syslog, skipped!
insserv.conf

init.d:
badheaderscript
okscript

insserv:
override

rc0.d:
K01okscript

rc1.d:
K01okscript

rc2.d:
S01okscript
S02badheaderscript

rc3.d:
S01okscript

rc4.d:
S01okscript

rc5.d:
S01okscript

rc6.d:
K01okscript

rcS.d:

info: Check if insserv add start symlinks for scripts that
info: currently do not have them. #492526

insserv.conf

init.d:
disablestartscript

insserv:
override

rc0.d:
K01disablestartscript

rc1.d:
K01disablestartscript

rc2.d:
S01disablestartscript

rc3.d:
S01disablestartscript

rc4.d:
S01disablestartscript

rc5.d:
S01disablestartscript

rc6.d:
K01disablestartscript

rcS.d:
insserv.conf

init.d:
disablestartscript

insserv:
override

rc0.d:
K01disablestartscript

rc1.d:
K01disablestartscript

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01disablestartscript

rcS.d:

info: Check if insserv add stop symlinks for scripts that
info: currently do not have them.

insserv.conf

init.d:
disablestopscript

insserv:
override

rc0.d:
K01disablestopscript

rc1.d:
K01disablestopscript

rc2.d:
S01disablestopscript

rc3.d:
S01disablestopscript

rc4.d:
S01disablestopscript

rc5.d:
S01disablestopscript

rc6.d:
K01disablestopscript

rcS.d:
insserv.conf

init.d:
disablestopscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01disablestopscript

rc3.d:
S01disablestopscript

rc4.d:
S01disablestopscript

rc5.d:
S01disablestopscript

rc6.d:
K01disablestopscript

rcS.d:

info: Verify that introducing a loop in a working system do
info: not change the order of the scripts currently on disk.

insserv.conf

init.d:
mountall
needboth
needlocal
needremote

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01needboth
K02needremote
K03needlocal

rcS.d:
S01mountall
S02needlocal
S03needremote
S04needboth
info: calling insserv after introducing a bug in script needboth
insserv: There is a loop between service mountall and needboth if started
insserv:  loop involving service needboth at depth 2
insserv:  loop involving service mountall at depth 1
insserv: exiting now without changing boot order!
insserv.conf

init.d:
mountall
needboth
needlocal
needremote

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01needboth
K02needremote
K03needlocal

rcS.d:
S01mountall
S02needlocal
S03needremote
S04needboth

info: Verify that X-start-before work as it should.

insserv.conf

init.d:
startfirst
startlast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01startfirst
S02startlast

info: Verify that X-stop-after work as it should.

insserv.conf

init.d:
stopafter
stopfirst

insserv:
override

rc0.d:
K01stopfirst
K02stopafter

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01stopfirst
K02stopafter

rcS.d:

info: Make sure that adding start levels do not change an existing installation.

insserv: warning: current start runlevel(s) (empty) of script `addstartscript' 
overrides LSB defaults (2 3 4 5).
insserv.conf

init.d:
addstartscript

insserv:
override

rc0.d:

rc1.d:
K01addstartscript

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: Make sure that removing start levels do not change an existing 
installation.

insserv: warning: current start runlevel(s) (2 3 4 5) of script 
`remstartscript' overrides LSB defaults (empty).
insserv.conf

init.d:
remstartscript

insserv:
override

rc0.d:
K01remstartscript

rc1.d:
K01remstartscript

rc2.d:
S01remstartscript

rc3.d:
S01remstartscript

rc4.d:
S01remstartscript

rc5.d:
S01remstartscript

rc6.d:
K01remstartscript

rcS.d:

info: Make sure that adding stop levels do not change an existing installation.

insserv: warning: current stop runlevel(s) (empty) of script `addstopscript' 
overrides LSB defaults (0).
insserv.conf

init.d:
addstopscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01addstopscript

info: Make sure that removing stop levels do not change an existing 
installation.

insserv: warning: current stop runlevel(s) (0 6) of script `remstopscript' 
overrides LSB defaults (empty).
insserv.conf

init.d:
remstopscript

insserv:
override

rc0.d:
K01remstopscript

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01remstopscript

rcS.d:
S01remstopscript

info: test two initscripts providing same facility.
info: Not sure if this should fail or not.

insserv: script two: service samefac already provided!
insserv: script two: service samefac already provided!
insserv: exiting now!
insserv.conf

init.d:
one
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01one

info: test insertion of script requiring a virtual facility that doesn't exist

insserv: warning: could not find all dependencies for $bogusvirtualfacility
insserv.conf

init.d:
needbogusvirtual

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01needbogusvirtual

info: test that /etc/insserv.conf.d/ is used

insserv.conf

init.d:
dummy
facone
factwo
service

insserv:
override

insserv.conf.d:
facone
factwo

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01dummy
S02facone
S02factwo
S03service

info: test insertion of script missing Required-{Start,Stop} fields

insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv.conf

init.d:
badheader

insserv:
override

rc0.d:
K01badheader

rc1.d:
K01badheader

rc2.d:
S01badheader

rc3.d:
S01badheader

rc4.d:
S01badheader

rc5.d:
S01badheader

rc6.d:
K01badheader

rcS.d:

info: test insertion of script missing Provides fields

insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv.conf

init.d:
badheader

insserv:
override

rc0.d:
K01badheader

rc1.d:
K01badheader

rc2.d:
S01badheader

rc3.d:
S01badheader

rc4.d:
S01badheader

rc5.d:
S01badheader

rc6.d:
K01badheader

rcS.d:

info: test insertion of script missing Default-Start field

insserv: script nodefstart is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: script nodefstart is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`nodefstart'
insserv.conf

init.d:
nodefstart

insserv:
override

rc0.d:
K01nodefstart

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01nodefstart

rcS.d:

info: test insertion of script missing Default-Stop field

insserv: script nodefstop is broken: incomplete LSB comment.
insserv: missing `Default-Stop:'   entry: please add even if empty.
insserv: script nodefstop is broken: incomplete LSB comment.
insserv: missing `Default-Stop:'   entry: please add even if empty.
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script 
`nodefstop'
insserv.conf

init.d:
nodefstop

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01nodefstop

rc3.d:
S01nodefstop

rc4.d:
S01nodefstop

rc5.d:
S01nodefstop

rc6.d:

rcS.d:

info: test that a symlink in /etc/init.d/ to another script does not cause 
problems

insserv: script symlink is a symlink to another script, skipped!
insserv.conf
outsider

init.d:
outsidelink
symlink
symlinked

insserv:
override

rc0.d:

rc1.d:
K01outsidelink
K01symlinked

rc2.d:
S01outsidelink
S01symlinked

rc3.d:
S01outsidelink
S01symlinked

rc4.d:
S01outsidelink
S01symlinked

rc5.d:
S01outsidelink
S01symlinked

rc6.d:

rcS.d:

info: test two or more initscripts providing same facility, making sure
info: that the first script can be registered with insserv, but others fail.

insserv: script hjk: service service already provided!
insserv: script abc: service service already provided!
insserv: script hjk: service service already provided!
insserv: script abc: service service already provided!
insserv: exiting now!
insserv: script abc: service service already provided!
insserv: script hjk: service service already provided!
insserv: exiting now!
insserv.conf

init.d:
abc
hjk
xyz

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01xyz

info: test behaviour of a script depending on another with the $all keyword
info: #491391

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: There is a loop at service bootchart if started
insserv.conf

init.d:
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc3.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc4.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc5.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc6.d:

rcS.d:

info: now add $all keyword to bootchart script and reinsert

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv.conf

init.d:
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc3.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc4.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc5.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc6.d:

rcS.d:

info: add yet another script depending on $all

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv.conf

init.d:
all
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc3.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc4.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc5.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc6.d:

rcS.d:

info: Check that start dependency on $all only affect the start
sequence. BTS #485307

insserv.conf

init.d:
center
early
late
zcomplex

insserv:
override

rc0.d:
K01zcomplex
K02late
K03center
K04early

rc1.d:

rc2.d:
S01early
S02zcomplex
S03center
S04late

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: add a regular file where only symlinks are expected (#493202)

insserv: Could not read script S06badboy: No such file or directory
insserv: warning: script is corrupt or invalid: 
/build/insserv-1.24.0/tests/root/etc/init.d/../rcS.d/S06badboy
insserv.conf

init.d:
goodboy

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01goodboy
S06badboy

info: Check if X-Interactive header work
BTS #458224, #580564

insserv.conf

init.d:
after
alone1
alone2
first

insserv:
override

rc0.d:
K01after
K01alone1
K01alone2
K02first

rc1.d:

rc2.d:
S01first
S02alone1
S03alone2
S04after

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test how recursive /etc/insserv.conf settings show up
info: in .depend.boot.  BTS #534526.

insserv.conf

init.d:

insserv:
override
insserv.conf

init.d:
dbus
hal
mountall

insserv:
override

rc0.d:

rc1.d:
S01dbus
S01mountall
S02hal

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test insserv handle virtual facilities depending on itself.

insserv.conf

init.d:

insserv:
override
insserv: Loop detected during expanding system facilities in the insserv.conf 
file(s): $local_fs +mountall
insserv.conf

init.d:
testscript

insserv:
override

info: Test if home made virtual facilities work as they should.

insserv: warning: could not find all dependencies for $mail-transport-agent
insserv: warning: could not find all dependencies for $mail-transport-agent
insserv: warning: could not find all dependencies for $mail-transport-agent
insserv.conf

init.d:
test1
test2

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:
S01test1
S01test2

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
insserv.conf

init.d:
test1
test2
test3
test4

insserv:
override

insserv.conf.d:
test3
test4

rc0.d:

rc1.d:
S01test3
S02test4
S03test1
S03test2

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test if insserv handle upstart jobs properly.

insserv.conf

init.d:

insserv:
override

insserv.conf.d:
insserv.conf

init:
upstart-test

init.d:
test
upstart-test

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:
S01upstart-test
S02test

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test if insserv detect loop involving virtual facility,
info: x-start-before and should-start.  Issue detected in BTS
info: report #554905.

insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service mountall at depth 1
insserv: There is a loop between service hibernate-cleanup and mdadm if started
insserv: exiting now without changing boot order!
insserv: FATAL: service mdadm has to be enabled to use service test
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv:  loop involving service mountall at depth 4
insserv: exiting now without changing boot order!
insserv.conf

init.d:
hibernate
mdadm
mountall.sh
test

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01hibernate
S02mountall.sh

info: test if insserv accepts 'corekeeper' but rejects core dumps
info: named '*.core' or 'core'
info: See bug report #554905.

insserv: script name somescript.core is not valid, skipped!
insserv: script name core is not valid, skipped!
insserv.conf

init.d:
core
corekeeper
somescript.core

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01corekeeper

info: test if -s|--show-all option works as it should

01      0,1,6   -               /etc/init.d/localscript
01      0,6     -               /etc/init.d/shutdownscript
01      -       2,3,4,5         /etc/init.d/localscript
01      -       S               /etc/init.d/bootscript

info: mountall-bootclean.sh must start before bootmisc.sh

insserv.conf

init.d:
bootmisc.sh
mountall-bootclean.sh
mountall.sh

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01mountall.sh
S02mountall-bootclean.sh
S03bootmisc.sh
insserv.conf

init.d:
nfs-common
nfs-server
rpcbind

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:
S01nfs-common
S02nfs-server

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01rpcbind
success: 240 test executed, 0 nonfatal tests failed.
make[1]: Leaving directory '/build/insserv-1.24.0'
   create-stamp debian/debhelper-build-stamp
 fakeroot debian/rules binary
echo -g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. -fstack-protector-strong 
-Wformat -Werror=format-security 
-g -O2 -ffile-prefix-map=/build/insserv-1.24.0=. -fstack-protector-strong 
-Wformat -Werror=format-security
dh binary --with=bash-completion
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install --destdir=debian/insserv/
        make -j2 install DESTDIR=/build/insserv-1.24.0/debian/insserv 
AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/insserv-1.24.0'
mkdir -p   /build/insserv-1.24.0/debian/insserv/sbin
mkdir -p   /build/insserv-1.24.0/debian/insserv/usr/share/man/man8
mkdir -p   /build/insserv-1.24.0/debian/insserv/etc
install -m 0755 insserv        /build/insserv-1.24.0/debian/insserv/sbin/
install -c -m 0644 insserv.8      
/build/insserv-1.24.0/debian/insserv/usr/share/man/man8/
# Only install configuration file if it does not exist. Do not overwrite distro 
config.
if [ -f /build/insserv-1.24.0/debian/insserv/etc/insserv.conf ]; then install 
-c -m 0644 insserv.conf 
/build/insserv-1.24.0/debian/insserv/etc/insserv.conf.sample ; fi
if [ ! -f /build/insserv-1.24.0/debian/insserv/etc/insserv.conf ] ; then 
install -c -m 0644 insserv.conf /build/insserv-1.24.0/debian/insserv/etc/ ; fi
make[1]: Leaving directory '/build/insserv-1.24.0'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installman
   dh_bash-completion
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   dh_dwz -a
   dh_strip -a
   dh_makeshlibs -a
   dh_shlibdeps -a
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: package insserv: substitution variable 
${perl:Depends} unused, but is defined
dpkg-gencontrol: warning: package insserv: substitution variable 
${perl:Depends} unused, but is defined
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'insserv' in '../insserv_1.24.0-1_amd64.deb'.
dpkg-deb: building package 'insserv-dbgsym' in 
'../insserv-dbgsym_1.24.0-1_amd64.deb'.
 dpkg-genbuildinfo --build=binary -O../insserv_1.24.0-1_amd64.buildinfo
 dpkg-genchanges --build=binary -O../insserv_1.24.0-1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
dpkg-genchanges: info: including full source code in upload
I: copying local configuration
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/B20autopkgtest 
starting
+ cd /build/insserv-1.24.0/debian/..
+ apt-get --yes install autodep8
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dctrl-tools
Suggested packages:
  debtags
The following NEW packages will be installed:
  autodep8 dctrl-tools
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 2 newly installed, 0 to remove and 174 not upgraded.
Need to get 0 B/117 kB of archives.
After this operation, 492 kB of additional disk space will be used.
Selecting previously unselected package dctrl-tools.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23787 files and directories currently installed.)
Preparing to unpack .../dctrl-tools_2.24-3+b1_amd64.deb ...
Unpacking dctrl-tools (2.24-3+b1) ...
Selecting previously unselected package autodep8.
Preparing to unpack .../archives/autodep8_0.28_all.deb ...
Unpacking autodep8 (0.28) ...
Setting up dctrl-tools (2.24-3+b1) ...
Setting up autodep8 (0.28) ...
Processing triggers for man-db (2.11.2-2) ...
Not building database; man-db/auto-update is not 'true'.
++ autodep8
+ '[' -z 'Tests: upstream' ']'
+ '[' '!' -f debian/files ']'
+ OPTS=
+ '[' -n '' ']'
+ unset newpid_name
+ apt-cache policy newpid
+ grep -q newpid:
+ echo 'The newpid package seems to be available, considering for installation'
The newpid package seems to be available, considering for installation
+ newpid_name=newpid
+ apt-get install -y autopkgtest apt-utils pbuilder newpid
Reading package lists...
Building dependency tree...
Reading state information...
pbuilder is already the newest version (0.231).
pbuilder set to manually installed.
The following additional packages will be installed:
  apt libapt-pkg6.0 libcap2-bin libgmp10 libgnutls30 libp11-kit0 libproc2-0
  libunistring5 procps python3-chardet python3-debian
Suggested packages:
  apt-doc powermgmt-base docker.io fakemachine lxc lxd ovmf ovmf-ia32
  python3-distro-info qemu-efi-aarch64 qemu-efi-arm qemu-system qemu-utils
  podman schroot vmdb2 zerofree gnutls-bin
Recommended packages:
  libpam-cap psmisc python3-apt zstd
The following NEW packages will be installed:
  apt-utils autopkgtest libcap2-bin libproc2-0 libunistring5 newpid procps
  python3-chardet python3-debian
The following packages will be upgraded:
  apt libapt-pkg6.0 libgmp10 libgnutls30 libp11-kit0
debconf: delaying package configuration, since apt-utils is not installed
5 upgraded, 9 newly installed, 0 to remove and 169 not upgraded.
Need to get 0 B/6698 kB of archives.
After this operation, 8616 kB of additional disk space will be used.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23867 files and directories currently installed.)
Preparing to unpack .../libapt-pkg6.0_2.7.6_amd64.deb ...
Unpacking libapt-pkg6.0:amd64 (2.7.6) over (2.6.1) ...
Setting up libapt-pkg6.0:amd64 (2.7.6) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23867 files and directories currently installed.)
Preparing to unpack .../libgmp10_2%3a6.3.0+dfsg-2_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.3.0+dfsg-2) over (2:6.2.1+dfsg1-1.1) ...
Setting up libgmp10:amd64 (2:6.3.0+dfsg-2) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23867 files and directories currently installed.)
Preparing to unpack .../libp11-kit0_0.25.0-4_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.25.0-4) over (0.24.1-2) ...
Setting up libp11-kit0:amd64 (0.25.0-4) ...
Selecting previously unselected package libunistring5:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23867 files and directories currently installed.)
Preparing to unpack .../libunistring5_1.1-2_amd64.deb ...
Unpacking libunistring5:amd64 (1.1-2) ...
Setting up libunistring5:amd64 (1.1-2) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23873 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.8.1-4+b1_amd64.deb ...
Unpacking libgnutls30:amd64 (3.8.1-4+b1) over (3.7.9-2) ...
Setting up libgnutls30:amd64 (3.8.1-4+b1) ...
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23874 files and directories currently installed.)
Preparing to unpack .../archives/apt_2.7.6_amd64.deb ...
Unpacking apt (2.7.6) over (2.6.1) ...
Setting up apt (2.7.6) ...
Selecting previously unselected package apt-utils.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23870 files and directories currently installed.)
Preparing to unpack .../0-apt-utils_2.7.6_amd64.deb ...
Unpacking apt-utils (2.7.6) ...
Selecting previously unselected package libproc2-0:amd64.
Preparing to unpack .../1-libproc2-0_2%3a4.0.3-1_amd64.deb ...
Unpacking libproc2-0:amd64 (2:4.0.3-1) ...
Selecting previously unselected package procps.
Preparing to unpack .../2-procps_2%3a4.0.3-1_amd64.deb ...
Unpacking procps (2:4.0.3-1) ...
Selecting previously unselected package python3-chardet.
Preparing to unpack .../3-python3-chardet_5.2.0+dfsg-1_all.deb ...
Unpacking python3-chardet (5.2.0+dfsg-1) ...
Selecting previously unselected package python3-debian.
Preparing to unpack .../4-python3-debian_0.1.49_all.deb ...
Unpacking python3-debian (0.1.49) ...
Selecting previously unselected package autopkgtest.
Preparing to unpack .../5-autopkgtest_5.30_all.deb ...
Unpacking autopkgtest (5.30) ...
Selecting previously unselected package libcap2-bin.
Preparing to unpack .../6-libcap2-bin_1%3a2.66-4_amd64.deb ...
Unpacking libcap2-bin (1:2.66-4) ...
Selecting previously unselected package newpid.
Preparing to unpack .../7-newpid_13_amd64.deb ...
Unpacking newpid (13) ...
Setting up apt-utils (2.7.6) ...
Setting up libcap2-bin (1:2.66-4) ...
Setting up python3-chardet (5.2.0+dfsg-1) ...
Setting up python3-debian (0.1.49) ...
Setting up libproc2-0:amd64 (2:4.0.3-1) ...
Setting up procps (2:4.0.3-1) ...
Setting up autopkgtest (5.30) ...
Setting up newpid (13) ...
Processing triggers for man-db (2.11.2-2) ...
Not building database; man-db/auto-update is not 'true'.
Processing triggers for libc-bin (2.36-9) ...
+ mkdir -p /build/autopkgtest.out
+ which autopkgtest
+ newpid autopkgtest --output-dir /build/autopkgtest.out --summary 
/build/autopkgtest.summary /build/insserv-dbgsym_1.24.0-1_amd64.deb 
/build/insserv_1.24.0-1_amd64.deb /build/insserv-1.24.0 -- autopkgtest-virt-null
autopkgtest [16:07:32]: starting date and time: 2023-09-26 16:07:32+0000
autopkgtest [16:07:32]: version 5.30
autopkgtest [16:07:32]: host apollo; command line: /usr/bin/autopkgtest 
--output-dir /build/autopkgtest.out --summary /build/autopkgtest.summary 
/build/insserv-dbgsym_1.24.0-1_amd64.deb /build/insserv_1.24.0-1_amd64.deb 
/build/insserv-1.24.0 -- autopkgtest-virt-null
autopkgtest [16:07:32]: testbed dpkg architecture: amd64
autopkgtest [16:07:32]: testbed apt version: 2.7.6
autopkgtest [16:07:32]: testbed running kernel: Linux 6.1.0-9-amd64 #1 SMP 
PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08)
autopkgtest [16:07:32]: @@@@@@@@@@@@@@@@@@@@ built-tree /build/insserv-1.24.0
autopkgtest [16:07:32]: testing package insserv version 1.24.0-1
autopkgtest [16:07:32]: test upstream: preparing testbed
Get:1 file:/tmp/autopkgtest.TzcmMs/binaries  InRelease
Ign:1 file:/tmp/autopkgtest.TzcmMs/binaries  InRelease
Get:2 file:/tmp/autopkgtest.TzcmMs/binaries  Release [816 B]
Get:2 file:/tmp/autopkgtest.TzcmMs/binaries  Release [816 B]
Get:3 file:/tmp/autopkgtest.TzcmMs/binaries  Release.gpg
Ign:3 file:/tmp/autopkgtest.TzcmMs/binaries  Release.gpg
Get:4 file:/tmp/autopkgtest.TzcmMs/binaries  Packages [1905 B]
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  insserv
Suggested packages:
  bootchart2
The following NEW packages will be installed:
  autopkgtest-satdep insserv
0 upgraded, 2 newly installed, 0 to remove and 169 not upgraded.
Need to get 0 B/51.3 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Get:1 file:/tmp/autopkgtest.TzcmMs/binaries  insserv 1.24.0-1 [50.6 kB]
Get:2 /tmp/autopkgtest.TzcmMs/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 
0 [700 B]
Selecting previously unselected package insserv.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 24342 files and directories currently installed.)
Preparing to unpack .../binaries/./insserv.deb ...
Unpacking insserv (1.24.0-1) ...
Selecting previously unselected package autopkgtest-satdep.
Preparing to unpack .../2-autopkgtest-satdep.deb ...
Unpacking autopkgtest-satdep (0) ...
Setting up insserv (1.24.0-1) ...
Setting up autopkgtest-satdep (0) ...
Processing triggers for man-db (2.11.2-2) ...
Not building database; man-db/auto-update is not 'true'.
(Reading database ... 24360 files and directories currently installed.)
Removing autopkgtest-satdep (0) ...
autopkgtest [16:07:43]: test upstream: [-----------------------

info: test simple script ordering.

insserv.conf

init.d:
firstscript
lastscript
middlescript

rc0.d:

rc1.d:

rc2.d:
S01firstscript
S02middlescript
S03lastscript

rc3.d:
S01firstscript
S02middlescript
S03lastscript

rc4.d:
S01firstscript
S02middlescript
S03lastscript

rc5.d:
S01firstscript
S02middlescript
S03lastscript

rc6.d:

rcS.d:

info: test if loop involving virtual facility is detected.

insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service mountall at depth 1
insserv: There is a loop between service hibernate-cleanup and mdadm if started
insserv: exiting now without changing boot order!
insserv.conf:
$local_fs       mountall
insserv.conf

init.d:
hibernate
mdadm
mountall.sh

rc0.d:

rc1.d:

rc2.d:

rc3.d:
S01hibernate
S02mountall.sh

rc4.d:

rc5.d:

rc6.d:

rcS.d:
success: 7 test executed, 0 nonfatal tests failed.

info: test normal boot sequence scripts, and their order

insserv: Could not read script nolsbheader: No such file or directory
insserv: warning: script 'nolsbheader' missing LSB tags
insserv: Could not read script nolsbheader: Success
insserv: warning: script 'nolsbheader' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`nolsbheader'
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script 
`nolsbheader'
insserv.conf

init.d:
beforenfs
checkfs.sh
checkroot.sh
halt
hwclock.sh
ifupdown
ifupdown-clean
kexec
killprocs
mountall.sh
mountdevsubfs.sh
mountkernfs.sh
mountnfs.sh
needallfs
needallfs2
needlocalfs
networking
nolsbheader
reboot
single
sysklogd
umountfs
umountnfs
umountroot

rc0.d:
K01hwclock.sh
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
K02umountnfs
K03networking
K04ifupdown
K05umountfs
K06umountroot
K07halt

rc1.d:
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
S01killprocs
S02single

rc2.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc3.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc4.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc5.d:
S01needallfs2
S01needlocalfs
S01sysklogd
S02needallfs

rc6.d:
K01hwclock.sh
K01needallfs
K01needallfs2
K01needlocalfs
K01sysklogd
K02umountnfs
K03networking
K04ifupdown
K05umountfs
K06umountroot
K07kexec
K08reboot

rcS.d:
S01mountkernfs.sh
S02mountdevsubfs.sh
S03checkroot.sh
S04checkfs.sh
S05hwclock.sh
S05ifupdown-clean
S05mountall.sh
S06beforenfs
S06ifupdown
S07networking
S08mountnfs.sh

info: test if override files replace headers in the file

insserv.conf

init.d:
base
mover

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01mover
S02base

info: testing to insert scripts with a loop, and the effect of an override file

insserv: FATAL: service loop2 has to be enabled to use service loop1
insserv: exiting now!
insserv: FATAL: service loop1 has to be enabled to use service loop2
insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop1 at depth 2
insserv:  loop involving service loop2 at depth 1
insserv: There is a loop between service loop1 and loop2 if started
insserv: exiting now without changing boot order!

info: Try to reproduce BTS #540866

insserv.conf

init.d:
testscript

insserv:
override

rc0.d:
K01testscript

rc1.d:
K01testscript

rc2.d:
S01testscript

rc3.d:

rc4.d:
S01testscript

rc5.d:
S01testscript

rc6.d:
K01testscript

rcS.d:
info: Trying to remove the script
insserv.conf

init.d:
testscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: testing to insert scripts with a longer loop, making sure it fail

insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop1 at depth 3
insserv:  loop involving service loop3 at depth 2
insserv: There is a loop between service loop2 and loop1 if started
insserv:  loop involving service loop2 at depth 1
insserv: There is a loop between service loop1 and loop3 if started
insserv: exiting now without changing boot order!

info: test handling of loops in the combination of start and stop sequences

insserv.conf

init.d:
startfirst
startsecond

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startsecond
K02startfirst

rcS.d:
S01startfirst
S02startsecond

info: test handling of 'fake' loops in the combination of start and stop 
sequences

insserv.conf

init.d:
startfirst_stopfirst
startsecond_stoplast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startfirst_stopfirst
K02startsecond_stoplast

rcS.d:
S01startfirst_stopfirst
S02startsecond_stoplast

info: test handling of 'fake' loops using reverse depends

insserv.conf

init.d:
startfirst_stopfirst
startsecond_stoplast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01startfirst_stopfirst
K02startsecond_stoplast

rcS.d:
S01startfirst_stopfirst
S02startsecond_stoplast

info: test if bad script in init.d/ with no symlinks in rc*.d/ make problems

insserv.conf

init.d:
distroglobal
sitelocal

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01distroglobal

rcS.d:
S01distroglobal

info: check that it work to insert scripts with only start runlevels

insserv.conf

init.d:
onlystart

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01onlystart

rc3.d:
S01onlystart

rc4.d:
S01onlystart

rc5.d:
S01onlystart

rc6.d:

rcS.d:

info: check that it work to insert scripts with only stop runlevels

insserv.conf

init.d:
onlystop

insserv:
override

rc0.d:
K01onlystop

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01onlystop

rcS.d:

info: test if script removal removes all symlinks.

insserv.conf

init.d:
oldscript

insserv:
override

rc0.d:

rc1.d:
K01oldscript

rc2.d:
S01oldscript

rc3.d:

rc4.d:
S01oldscript

rc5.d:
S01oldscript

rc6.d:

rcS.d:

info: detect segfault caused by script providing virtual facility.

insserv: script badheaderscript provides system facility $syslog, skipped!
insserv: script badheaderscript provides system facility $syslog, skipped!
insserv: script S02badheaderscript provides system facility $syslog, skipped!
insserv: script badheaderscript provides system facility $syslog, skipped!
insserv.conf

init.d:
badheaderscript
okscript

insserv:
override

rc0.d:
K01okscript

rc1.d:
K01okscript

rc2.d:
S01okscript
S02badheaderscript

rc3.d:
S01okscript

rc4.d:
S01okscript

rc5.d:
S01okscript

rc6.d:
K01okscript

rcS.d:

info: Check if insserv add start symlinks for scripts that
info: currently do not have them. #492526

insserv.conf

init.d:
disablestartscript

insserv:
override

rc0.d:
K01disablestartscript

rc1.d:
K01disablestartscript

rc2.d:
S01disablestartscript

rc3.d:
S01disablestartscript

rc4.d:
S01disablestartscript

rc5.d:
S01disablestartscript

rc6.d:
K01disablestartscript

rcS.d:
insserv.conf

init.d:
disablestartscript

insserv:
override

rc0.d:
K01disablestartscript

rc1.d:
K01disablestartscript

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01disablestartscript

rcS.d:

info: Check if insserv add stop symlinks for scripts that
info: currently do not have them.

insserv.conf

init.d:
disablestopscript

insserv:
override

rc0.d:
K01disablestopscript

rc1.d:
K01disablestopscript

rc2.d:
S01disablestopscript

rc3.d:
S01disablestopscript

rc4.d:
S01disablestopscript

rc5.d:
S01disablestopscript

rc6.d:
K01disablestopscript

rcS.d:
insserv.conf

init.d:
disablestopscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01disablestopscript

rc3.d:
S01disablestopscript

rc4.d:
S01disablestopscript

rc5.d:
S01disablestopscript

rc6.d:
K01disablestopscript

rcS.d:

info: Verify that introducing a loop in a working system do
info: not change the order of the scripts currently on disk.

insserv.conf

init.d:
mountall
needboth
needlocal
needremote

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01needboth
K02needremote
K03needlocal

rcS.d:
S01mountall
S02needlocal
S03needremote
S04needboth
info: calling insserv after introducing a bug in script needboth
insserv: There is a loop between service mountall and needboth if started
insserv:  loop involving service needboth at depth 2
insserv:  loop involving service mountall at depth 1
insserv: exiting now without changing boot order!
insserv.conf

init.d:
mountall
needboth
needlocal
needremote

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01needboth
K02needremote
K03needlocal

rcS.d:
S01mountall
S02needlocal
S03needremote
S04needboth

info: Verify that X-start-before work as it should.

insserv.conf

init.d:
startfirst
startlast

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01startfirst
S02startlast

info: Verify that X-stop-after work as it should.

insserv.conf

init.d:
stopafter
stopfirst

insserv:
override

rc0.d:
K01stopfirst
K02stopafter

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01stopfirst
K02stopafter

rcS.d:

info: Make sure that adding start levels do not change an existing installation.

insserv: warning: current start runlevel(s) (empty) of script `addstartscript' 
overrides LSB defaults (2 3 4 5).
insserv.conf

init.d:
addstartscript

insserv:
override

rc0.d:

rc1.d:
K01addstartscript

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: Make sure that removing start levels do not change an existing 
installation.

insserv: warning: current start runlevel(s) (2 3 4 5) of script 
`remstartscript' overrides LSB defaults (empty).
insserv.conf

init.d:
remstartscript

insserv:
override

rc0.d:
K01remstartscript

rc1.d:
K01remstartscript

rc2.d:
S01remstartscript

rc3.d:
S01remstartscript

rc4.d:
S01remstartscript

rc5.d:
S01remstartscript

rc6.d:
K01remstartscript

rcS.d:

info: Make sure that adding stop levels do not change an existing installation.

insserv: warning: current stop runlevel(s) (empty) of script `addstopscript' 
overrides LSB defaults (0).
insserv.conf

init.d:
addstopscript

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01addstopscript

info: Make sure that removing stop levels do not change an existing 
installation.

insserv: warning: current stop runlevel(s) (0 6) of script `remstopscript' 
overrides LSB defaults (empty).
insserv.conf

init.d:
remstopscript

insserv:
override

rc0.d:
K01remstopscript

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01remstopscript

rcS.d:
S01remstopscript

info: test two initscripts providing same facility.
info: Not sure if this should fail or not.

insserv: script two: service samefac already provided!
insserv: script two: service samefac already provided!
insserv: exiting now!
insserv.conf

init.d:
one
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01one

info: test insertion of script requiring a virtual facility that doesn't exist

insserv: warning: could not find all dependencies for $bogusvirtualfacility
insserv.conf

init.d:
needbogusvirtual

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01needbogusvirtual

info: test that /etc/insserv.conf.d/ is used

insserv.conf

init.d:
dummy
facone
factwo
service

insserv:
override

insserv.conf.d:
facone
factwo

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01dummy
S02facone
S02factwo
S03service

info: test insertion of script missing Required-{Start,Stop} fields

insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv.conf

init.d:
badheader

insserv:
override

rc0.d:
K01badheader

rc1.d:
K01badheader

rc2.d:
S01badheader

rc3.d:
S01badheader

rc4.d:
S01badheader

rc5.d:
S01badheader

rc6.d:
K01badheader

rcS.d:

info: test insertion of script missing Provides fields

insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv: script badheader is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv.conf

init.d:
badheader

insserv:
override

rc0.d:
K01badheader

rc1.d:
K01badheader

rc2.d:
S01badheader

rc3.d:
S01badheader

rc4.d:
S01badheader

rc5.d:
S01badheader

rc6.d:
K01badheader

rcS.d:

info: test insertion of script missing Default-Start field

insserv: script nodefstart is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: script nodefstart is broken: incomplete LSB comment.
insserv: missing `Default-Start:'  entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 
`nodefstart'
insserv.conf

init.d:
nodefstart

insserv:
override

rc0.d:
K01nodefstart

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:
K01nodefstart

rcS.d:

info: test insertion of script missing Default-Stop field

insserv: script nodefstop is broken: incomplete LSB comment.
insserv: missing `Default-Stop:'   entry: please add even if empty.
insserv: script nodefstop is broken: incomplete LSB comment.
insserv: missing `Default-Stop:'   entry: please add even if empty.
insserv: Default-Stop  undefined, assuming empty stop runlevel(s) for script 
`nodefstop'
insserv.conf

init.d:
nodefstop

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01nodefstop

rc3.d:
S01nodefstop

rc4.d:
S01nodefstop

rc5.d:
S01nodefstop

rc6.d:

rcS.d:

info: test that a symlink in /etc/init.d/ to another script does not cause 
problems

insserv: script symlink is a symlink to another script, skipped!
insserv.conf
outsider

init.d:
outsidelink
symlink
symlinked

insserv:
override

rc0.d:

rc1.d:
K01outsidelink
K01symlinked

rc2.d:
S01outsidelink
S01symlinked

rc3.d:
S01outsidelink
S01symlinked

rc4.d:
S01outsidelink
S01symlinked

rc5.d:
S01outsidelink
S01symlinked

rc6.d:

rcS.d:

info: test two or more initscripts providing same facility, making sure
info: that the first script can be registered with insserv, but others fail.

insserv: script hjk: service service already provided!
insserv: script abc: service service already provided!
insserv: script hjk: service service already provided!
insserv: script abc: service service already provided!
insserv: exiting now!
insserv: script abc: service service already provided!
insserv: script hjk: service service already provided!
insserv: exiting now!
insserv.conf

init.d:
abc
hjk
xyz

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01xyz

info: test behaviour of a script depending on another with the $all keyword
info: #491391

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: There is a loop at service bootchart if started
insserv.conf

init.d:
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc3.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc4.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc5.d:
S01one
S01three
S01two
S02four
S98bootchart
S99rmnologin

rc6.d:

rcS.d:

info: now add $all keyword to bootchart script and reinsert

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv.conf

init.d:
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc3.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc4.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc5.d:
S01one
S01three
S01two
S02four
S03rmnologin
S04bootchart

rc6.d:

rcS.d:

info: add yet another script depending on $all

insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv: Starting bootchart depends on rmnologin and therefore on system 
facility `$all' which can not be true!
insserv.conf

init.d:
all
bootchart
four
one
rmnologin
three
two

insserv:
override

rc0.d:

rc1.d:

rc2.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc3.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc4.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc5.d:
S01one
S01three
S01two
S02four
S03all
S03rmnologin
S04bootchart

rc6.d:

rcS.d:

info: Check that start dependency on $all only affect the start
sequence. BTS #485307

insserv.conf

init.d:
center
early
late
zcomplex

insserv:
override

rc0.d:
K01zcomplex
K02late
K03center
K04early

rc1.d:

rc2.d:
S01early
S02zcomplex
S03center
S04late

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: add a regular file where only symlinks are expected (#493202)

insserv: Could not read script S06badboy: No such file or directory
insserv: warning: script is corrupt or invalid: 
/tmp/autopkgtest.TzcmMs/autopkgtest_tmp/insserv/tests/root/etc/init.d/../rcS.d/S06badboy
insserv.conf

init.d:
goodboy

insserv:
override

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01goodboy
S06badboy

info: Check if X-Interactive header work
BTS #458224, #580564

insserv.conf

init.d:
after
alone1
alone2
first

insserv:
override

rc0.d:
K01after
K01alone1
K01alone2
K02first

rc1.d:

rc2.d:
S01first
S02alone1
S03alone2
S04after

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test how recursive /etc/insserv.conf settings show up
info: in .depend.boot.  BTS #534526.

insserv.conf

init.d:

insserv:
override
insserv.conf

init.d:
dbus
hal
mountall

insserv:
override

rc0.d:

rc1.d:
S01dbus
S01mountall
S02hal

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test insserv handle virtual facilities depending on itself.

insserv.conf

init.d:

insserv:
override
insserv: Loop detected during expanding system facilities in the insserv.conf 
file(s): $local_fs +mountall
insserv.conf

init.d:
testscript

insserv:
override

info: Test if home made virtual facilities work as they should.

insserv: warning: could not find all dependencies for $mail-transport-agent
insserv: warning: could not find all dependencies for $mail-transport-agent
insserv: warning: could not find all dependencies for $mail-transport-agent
insserv.conf

init.d:
test1
test2

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:
S01test1
S01test2

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
insserv.conf

init.d:
test1
test2
test3
test4

insserv:
override

insserv.conf.d:
test3
test4

rc0.d:

rc1.d:
S01test3
S02test4
S03test1
S03test2

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test if insserv handle upstart jobs properly.

insserv.conf

init.d:

insserv:
override

insserv.conf.d:
insserv.conf

init:
upstart-test

init.d:
test
upstart-test

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:
S01upstart-test
S02test

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:

info: test if insserv detect loop involving virtual facility,
info: x-start-before and should-start.  Issue detected in BTS
info: report #554905.

insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service mountall at depth 1
insserv: There is a loop between service hibernate-cleanup and mdadm if started
insserv: exiting now without changing boot order!
insserv: FATAL: service mdadm has to be enabled to use service test
insserv: There is a loop between service mountall and hibernate-cleanup if 
started
insserv:  loop involving service hibernate-cleanup at depth 3
insserv:  loop involving service mdadm at depth 2
insserv:  loop involving service mountall at depth 4
insserv: exiting now without changing boot order!
insserv.conf

init.d:
hibernate
mdadm
mountall.sh
test

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01hibernate
S02mountall.sh

info: test if insserv accepts 'corekeeper' but rejects core dumps
info: named '*.core' or 'core'
info: See bug report #554905.

insserv: script name somescript.core is not valid, skipped!
insserv: script name core is not valid, skipped!
insserv.conf

init.d:
core
corekeeper
somescript.core

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01corekeeper

info: test if -s|--show-all option works as it should

01      0,1,6   -               /etc/init.d/localscript
01      0,6     -               /etc/init.d/shutdownscript
01      -       2,3,4,5         /etc/init.d/localscript
01      -       S               /etc/init.d/bootscript

info: mountall-bootclean.sh must start before bootmisc.sh

insserv.conf

init.d:
bootmisc.sh
mountall-bootclean.sh
mountall.sh

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01mountall.sh
S02mountall-bootclean.sh
S03bootmisc.sh
insserv.conf

init.d:
nfs-common
nfs-server
rpcbind

insserv:
override

insserv.conf.d:

rc0.d:

rc1.d:

rc2.d:
S01nfs-common
S02nfs-server

rc3.d:

rc4.d:

rc5.d:

rc6.d:

rcS.d:
S01rpcbind
success: 240 test executed, 0 nonfatal tests failed.
autopkgtest [16:07:53]: test upstream: -----------------------]
autopkgtest [16:07:54]: test upstream:  - - - - - - - - - - results - - - - - - 
- - - -
upstream             PASS
autopkgtest [16:07:54]: @@@@@@@@@@@@@@@@@@@@ summary
upstream             PASS
autopkgtest [16:07:54]: Binaries: resetting testbed apt configuration
Hit:1 http://deb.debian.org/debian unstable InRelease
Reading package lists...
+ tar -caf /build/autopkgtest.tar.gz /build/autopkgtest.out
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
+ case ${EXIT:-0} in
+ exit 0
I: user script /var/cache/pbuilder/build/cow.20068/tmp/hooks/B20autopkgtest 
finished
I: Copying back the cached apt archive contents
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Current time: Tue Sep 26 17:08:16 BST 2023
I: pbuilder-time-stamp: 1695744496
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.20068

Reply via email to