Commit ad625b35 authored by Tails developers's avatar Tails developers
Browse files

This saves f4d6f687's fix for [[bugs/sdmem_on_eject_broken_for_CD]].

parent 5a8eb1c5
......@@ -67,9 +67,11 @@ DEV_UDEV_PATH=$(udevadm info --query path $QUERY_SELECTOR)
DEV_TYPE_LINE=$(udevadm info --query property $QUERY_SELECTOR | grep -w '^ID_TYPE')
# Let's be sure the CDRom can be ejected by pressing the button
# If the world was sane we'd want to *disable* the eject lock, but it turns out
# that blocks the block events so udev-watchdog never receives the "change"
# event. See [[bugs/sdmem_on_eject_broken_for_CD]].
if [ "$DEV_TYPE" = "cd" ]; then
eject -i off "${BOOT_DEVICE}"
eject -i on "${BOOT_DEVICE}"
# Start udev-watchdog and stop on clean exit.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment