From b0365db86138a27c1b90714e8129b2a551267ff9 Mon Sep 17 00:00:00 2001
From: Andreas Loibl <andreas@andreas-loibl.de>
Date: Sun, 26 Feb 2012 16:50:43 +0100
Subject: remove live-only hooks on installation target

---
 backend/modules/install_configure | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/backend/modules/install_configure b/backend/modules/install_configure
index 00d55ae..68f60be 100644
--- a/backend/modules/install_configure
+++ b/backend/modules/install_configure
@@ -152,5 +152,15 @@ function configure_target_purge_live_only_stuff()
 
 	# remove kdm live shutdown hack
 	rm -f "$TARGET/home/$cfg_username/.kde/shutdown/kdm-force-shutdown-hack"
+
+        # remove live-only hooks
+        rm -vf $TARGET/usr/bin/isohybrid-bg2 \
+               $TARGET/usr/share/initramfs-tools/hooks/pcidetect \
+               $TARGET/usr/share/initramfs-tools/scripts/init-top/pcidetect \
+               $TARGET/usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay \
+               $TARGET/usr/share/initramfs-tools/scripts/live-bottom/02blacklist \
+               $TARGET/usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware
+        rm -rvf $TARGET/lib/live
+        rm -vf $TARGET/etc/profile.d/zz-live.sh
 }
 
-- 
cgit v1.0