summaryrefslogtreecommitdiff
path: root/helpers/lh_patchchroot
blob: ae99997c669d624fd05548ed24db7e33adb56ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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