[Piuparts-commits] [piuparts] 05/10: add exception for reseed

Holger Levsen holger at layer-acht.org
Sun Jan 15 21:24:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository piuparts.

commit 78f8647d7a1c637b2b1e239c43f98ba9f34be628
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun Jan 15 18:24:30 2017 +0100

    add exception for reseed
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/pre_install_exceptions | 6 ++++++
 custom-scripts/scripts/pre_remove_exceptions  | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/custom-scripts/scripts/pre_install_exceptions b/custom-scripts/scripts/pre_install_exceptions
index b1f16a3..d00c998 100755
--- a/custom-scripts/scripts/pre_install_exceptions
+++ b/custom-scripts/scripts/pre_install_exceptions
@@ -98,6 +98,12 @@ case ${PIUPARTS_OBJECTS%%=*} in
 				mv -v /etc/motd /etc/motd.orig
 			fi
 			;;
+	reseed)
+			log_debug
+			# postinst runs reseed which accesses the net
+			dpkg-divert --rename /usr/sbin/reseed
+			ln -s /bin/true /usr/sbin/reseed
+			;;
 	bugzilla3)
 			# checksetup.pl goes into infinite loop asking for them
 			log_debug
diff --git a/custom-scripts/scripts/pre_remove_exceptions b/custom-scripts/scripts/pre_remove_exceptions
index 7f5d5d5..6b5b6d6 100755
--- a/custom-scripts/scripts/pre_remove_exceptions
+++ b/custom-scripts/scripts/pre_remove_exceptions
@@ -47,6 +47,12 @@ case ${PIUPARTS_OBJECTS%%=*} in
 			fi
 		fi
 		;;
+	reseed)
+		log_debug
+		# cleanup from pre_install_exceptions
+		test ! -L /usr/sbin/reseed || rm /usr/sbin/reseed
+		dpkg-divert --remove --rename /usr/sbin/reseed
+		;;
 esac
 
 # Allow removal of the kernel running on the host from the chroot.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list