path: root/config
diff options
authorCyril Brulebois <>2015-10-27 10:54:05 +0100
committerCyril Brulebois <>2015-10-27 11:04:21 +0100
commit2392e8c15c629d2529f3c5b415a83aa50e439757 (patch)
treeb9bc03e1c57a2acb95ba5f88ac723a6859bbdfcc /config
parent39a7348e7227de8e9933a7b420ed7a29a37204cf (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')
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