path: root/config/chroot_local-includes
diff options
authorCyril Brulebois <>2015-10-27 10:54:05 +0100
committerintrigeri <>2016-03-10 14:40:53 +0000
commite654e8c30fb5317a3729ebd7726036b239077186 (patch)
tree75dc05ac1f79c7be4999d69974e4c9bf026c08dd /config/chroot_local-includes
parentf0d3b377a07bc6c4841cb48b5a1519e3d157f2c7 (diff)
Restore original apt-get at boot time.
It would probably be a better idea to perform this operation only once at build time but it requires hooking into the very last minute before ISO image building, so that all APT operations go through the wrapper, before removing it. Signed-off-by: Cyril Brulebois <>
Diffstat (limited to 'config/chroot_local-includes')
1 files changed, 8 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/1600-undivert-APT b/config/chroot_local-includes/lib/live/config/1600-undivert-APT
new file mode 100755
index 0000000..fafa04c
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/1600-undivert-APT
@@ -0,0 +1,8 @@
+echo "- undiverting APT"
+if [ -f /usr/bin/apt-get.real ]; then
+ rm -f usr/bin/apt-get
+ dpkg-divert --rename --remove /usr/bin/apt-get