Public bug reported:

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/systemd/generator/*
-rw-r--r-- 1 root root 486 Sep  2 11:45 /var/run/systemd/generator/boot.mount
-rw-r--r-- 1 root root 486 Sep  2 11:45 /var/run/systemd/generator/home.mount
-rw-r--r-- 1 root root 294 Sep  2 11:45 /var/run/systemd/generator/-.mount
-rw-r--r-- 1 root root 933 Sep  2 11:45 
/var/run/systemd/generator/systemd-cryptsetup@LUKS_BOOT.service
-rw-r--r-- 1 root root 933 Sep  2 11:45 
/var/run/systemd/generator/systemd-cryptsetup@LUKS_DATA.service
-rw-r--r-- 1 root root 887 Sep  2 11:45 
/var/run/systemd/generator/systemd-cryptsetup@LUKS_HDD_OS.service
-rw-r--r-- 1 root root 887 Sep  2 11:45 
/var/run/systemd/generator/systemd-cryptsetup@LUKS_HDD_VM.service
-rw-r--r-- 1 root root 929 Sep  2 11:45 
/var/run/systemd/generator/systemd-cryptsetup@LUKS_OS.service
-rw-r--r-- 1 root root 491 Sep  2 11:45 
/var/run/systemd/generator/usr-local.mount
-rw-r--r-- 1 root root 485 Sep  2 11:45 /var/run/systemd/generator/var.mount

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1491393

Title:
  15.10: Long boot-time delays trying to find disconnected hot-plugged
  storage devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1491393/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to