From d5510c99100303d73c00dd59907aeda83594d3b5 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 13 Jun 2011 10:24:37 +0100 Subject: Divert flash-kernel aside while building the chroot (Closes: #630350). --- scripts/build/lb_chroot_dpkg | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/build/lb_chroot_dpkg') diff --git a/scripts/build/lb_chroot_dpkg b/scripts/build/lb_chroot_dpkg index 25795a397..3194c0456 100755 --- a/scripts/build/lb_chroot_dpkg +++ b/scripts/build/lb_chroot_dpkg @@ -70,6 +70,10 @@ EOF touch /var/state/samhain/samhain_file fi + # flash-kernel + Chroot chroot dpkg-divert --rename --add /usr/sbin/flash-kernel + ln -s /bin/true chroot/usr/sbin/flash-kernel + # Creating stage file Create_stagefile .stage/chroot_dpkg ;; @@ -85,6 +89,10 @@ EOF # Manual hacks for special packages + # flash-kernel + rm -f chroot/usr/sbin/flash-kernel + Chroot chroot dpkg-divert --rename --remove /usr/sbin/flash-kernel + # samhain if [ -e /var/state/samhain/samhain_file.orig ] then -- cgit v1.2.3