cp bin/live-new-uuid bin/live-snapshot bin/live-swapfile $(DESTDIR)/sbin
mkdir -p $(DESTDIR)/usr/share/live-boot
- cp bin/live-preseed bin/live-reconfigure $(DESTDIR)/usr/share/live-boot
+ cp bin/live-preseed $(DESTDIR)/usr/share/live-boot
mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks
cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live
mkdir -p "${DESTDIR}"/lib/live-boot
# Executables
-copy_exec /usr/share/live-boot/live-reconfigure /bin
copy_exec /usr/share/live-boot/live-preseed /bin
# klibc dependencies
+++ /dev/null
-#! /bin/sh
-
-set -e
-
-export PATH=/usr/bin:/usr/sbin:/sbin:/bin
-
-frontend=noninteractive
-
-findcommandinroot ()
-{
- ROOT="${1}/"
- shift
-
- while [ "${#}" -ge 1 ]
- do
- P="${PATH}"
-
- while [ "${P}" ]
- do
- D=${P%%:*}
- P=${P#*:}
-
- if [ "${D}" = "${P}" ]
- then
- P=
- fi
-
- if [ -z "${D}" ]
- then
- D=.
- fi
-
- if [ -x "${ROOT}${D}/${1}" ]
- then
- echo "${D}/${1}"
- return 0
- fi
- done
-
- shift
- done
-
- return 1
-}
-
-runcommandinroot ()
-{
- C=$(findcommandinroot "${1}" "${2}")
- ROOT="${1}"
-
- shift
- shift
-
- [ -n "${C}" ] && chroot "${ROOT}" "${C}" "${@}"
-}
-
-root="${1}"
-package="${2}"
-
-version=$(runcommandinroot "${root}" dpkg-query -W --showformat='${Version}' "${package}" 2>/dev/null) || version=""
-
-if [ -z "${version}" ]
-then
- echo >&2 "${0}: package '${package}' is not installed"
- exit 0
-fi
-
-runcommandinroot "${root}" dpkg-reconfigure -fnoninteractive --no-reload "${package}"
-
-exit 0