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

Bug#411251: live-package: Alternative handling for LIVE_HOOK



Package: live-package
Version: 0.99.21-1
Severity: wishlist
Tags: patch


Where LIVE_HOOK is a file the current implementation uses: Chroot_exec "`cat ${LIVE_HOOK}`
In my experience this breaks easily. Code below copies the file into the
chroot and executes it.

13chroot.sh

if [ -r "${LIVE_HOOK}" ]
then
	# FIXME
	FHOOK=`basename ${LIVE_HOOK}`
	cp "${LIVE_HOOK}" "${LIVE_CHROOT}"/root/
	if [ -x "${LIVE_HOOK}" ]
	then
		LIVE_DEBCONF_FRONTEND="readline" LIVE_DEBCONF_PRIORITY="low" Chroot_exec "/root/${FHOOK}"
	else
		LIVE_DEBCONF_FRONTEND="readline" LIVE_DEBCONF_PRIORITY="low" Chroot_exec "sh /root/${FHOOK}"
	fi
	rm "${LIVE_CHROOT}"/root/"${FHOOK}"
elif [ -n "${LIVE_HOOK}" ]
then
	LIVE_DEBCONF_FRONTEND="readline" LIVE_DEBCONF_PRIORITY="low" chroot_exec "${LIVE_HOOK}"
fi

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages live-package depends on:
ii  cdebootstrap                 0.3.15      Bootstrap a Debian system
ii  genext2fs                    1.4-rc1-2.1 ext2 filesystem generator for embe
ii  genisoimage                  9:1.1.2-1   Creates ISO-9660 CD-ROM filesystem
ii  mkisofs                      9:1.1.2-1   Dummy transition package for genis
ii  squashfs-tools               1:3.1r2-6   Tool to create and append to squas

live-package recommends no packages.

-- no debconf information



Reply to: