summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-01-18 09:23:32 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:35:56 +0100
commit68be48c28ece46b874b82b5122ca148d9b414a80 (patch)
treecc29dc164acdb58f0cd61938bdd9b397530e97a0
parentf758701c0f4eeff83da4b4d550f6e3fde0299ea7 (diff)
downloadlive-build-68be48c28ece46b874b82b5122ca148d9b414a80.zip
live-build-68be48c28ece46b874b82b5122ca148d9b414a80.tar.gz
Correcting wrong installation attempt of initramfs generator from local-packages.
-rwxr-xr-xhelpers/lh_chroot_linux-image6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image
index 5b519b8..84157d0 100755
--- a/helpers/lh_chroot_linux-image
+++ b/helpers/lh_chroot_linux-image
@@ -102,7 +102,9 @@ EOF
then
cp config/chroot_local-packages/${LH_INITRAMFS}*.deb chroot/root
- Chroot "dpkg -i /root/${LH_INITRAMFS}*.deb" || true
+ # Installing package
+ Chroot "find /root -name *.deb" > chroot/root/initfs
+ Chroot "xargs --arg-file=/root/initfs dpkg -i" || true
# Cleaning dependencies
case "${LH_APT}" in
@@ -115,7 +117,9 @@ EOF
;;
esac
+ # Removing package files
rm -f chroot/root/${LH_INITRAMFS}*.deb
+ rm -f chroot/root/initfs
fi
# Saving cache