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

Bug#772651: live-build: --initsystem does not control which of live-config-{systemd, sysvinit} gets installed



Package: live-build
Version: 4.0.3-1kali2
Severity: normal
User: devel@kali.org
Usertags: origin-kali

The config script forces the installation of live-config-systemd or
live-config-sysvinit base only on the LB_PARENT_DISTRIBUTION setting:

Extract from scripts/build/config:

    if [ ! -e config/package-lists/live.list.chroot ]
    then

    cat > config/package-lists/live.list.chroot << EOF
    live-boot
    live-config
    EOF

    case "${LB_PARENT_DISTRIBUTION}" in
	    wheezy)
		    echo "live-config-sysvinit" >> config/package-lists/live.list.chroot
		    ;;

	    *)
		    echo "live-config-systemd" >> config/package-lists/live.list.chroot
		    ;;
    esac

    fi

Unfortunately, this means that the --initsystem option does not allow one to
override this choice. Furthermore the check based on the distribution codename
is very restrictive and doesn't work for derivatives. It is thus important
to allow some other way to control it.


-- Package-specific info:

-- System Information:
Debian Release: 8.0
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages live-build depends on:
ii  cdebootstrap  0.6.4
ii  debootstrap   1.0.66

Versions of packages live-build recommends:
ii  cpio                            2.11+dfsg-2+b1
ii  live-boot-doc                   4.0.1-1
ii  live-config-doc                 4.0.2-1
ii  live-manual-html [live-manual]  1:4.0.1-1

live-build suggests no packages.

-- no debconf information


Reply to: