Divert flash-kernel aside while building the chroot (Closes: #630350).

This commit is contained in:
Colin Watson 2011-06-13 10:24:37 +01:00 committed by Daniel Baumann
parent abcc4ca9bf
commit d5510c9910
1 changed files with 8 additions and 0 deletions

View File

@ -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