summaryrefslogtreecommitdiff
path: root/share/hooks/live/0200-remove-udev-persistent-cd-rules.hook.chroot
blob: bdfe52d9614d6857a330c711b7310dd760c41837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# Remove udev persistent rules.
#
# This removes udev persistent rules that cache the host systems cd drive as
# well as the running live systems cd drive to remember its device name.

if [ -e /etc/udev/rules.d ]
then
	> /etc/udev/rules.d/70-persistent-cd.rules
fi