15.10: Long boot-time delays trying to find disconnected hot-plugged storage devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Is there a way to prevent systemd from creating generator targets for hot-plug disks?
Currently it is causing very long delays at boot-time - which are not interruptible by the sys-admin - but I'm not sure at what point systemd decided those hot-plug devices should be added to the boot-time tasks, or how to safely delete them.
There are generator rules added at some stage but I cannot find information on how to safely remove them, or how to prevent them being created.
In this output the device-mapper names prefixed LUKS_HDD_ are the problem:
$ ls -l /var/run/
-rw-r--r-- 1 root root 486 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 486 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 294 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 933 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 933 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 887 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 887 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 929 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 491 Sep 2 11:45 /var/run/
-rw-r--r-- 1 root root 485 Sep 2 11:45 /var/run/
You should be able to add the "noauto" option to the devices in /etc/crypttab which you don't rely on for booting.