live-build/helpers/lh_patchchroot

19 lines
349 B
Bash
Executable File

#!/bin/sh
# lh_patchchroot.sh <action>
# Some maintainer scripts can detect if they are in a chrooted system.
# Therefore, we create the needed file.
case "${1}" in
apply)
# Create chroot file
echo "debian-live" > "${LIVE_CHROOT}"/etc/debian_chroot
;;
deapply)
# Remove chroot file
rm -f "${LIVE_CHROOT}"/etc/debian_chroot
;;
esac