Codebase list live-build / d3b90fb2-1914-4e4a-9cdf-6e3d9550928a/main share / hooks / normal / 0200-remove-udev-persistent-cd-rules.hook.chroot
d3b90fb2-1914-4e4a-9cdf-6e3d9550928a/main

Tree @d3b90fb2-1914-4e4a-9cdf-6e3d9550928a/main (Download .tar.gz)

0200-remove-udev-persistent-cd-rules.hook.chroot @d3b90fb2-1914-4e4a-9cdf-6e3d9550928a/mainraw · history · blame

#!/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