#!/bin/sh
if [ "$(id -u)" != "0" ]; then
 echo "Error: Run the script as root!" >&2
 exit 1
fi
apt-get remove --purge --yes live-boot live-config live-boot-initramfs-tools live-config-sysvinit
rm -vf /usr/bin/isohybrid-bg2 \
       /usr/share/initramfs-tools/hooks/pcidetect \
       /usr/share/initramfs-tools/scripts/init-top/pcidetect \
       /usr/share/initramfs-tools/scripts/live-bottom/01gfxoverlay \
       /usr/share/initramfs-tools/scripts/live-bottom/02blacklist \
       /usr/share/initramfs-tools/scripts/live-bottom/03rpmfirmware
rm -rvf /lib/live
rm -vf /etc/profile.d/zz-live.sh
update-initramfs -utk all
