X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2F99-systemd.rules;h=186ef45f49f5400b566cefdf3d5580c6f0428135;hb=7c3b203c5c69fc37c8d143851cd395cbf8920786;hp=8c54b382f8fccb52bd6ce66cf366a31ce7d70593;hpb=88dfa2938af09e511e4911e6984360ded0e2cd8d;p=elogind.git diff --git a/src/99-systemd.rules b/src/99-systemd.rules index 8c54b382f..186ef45f4 100644 --- a/src/99-systemd.rules +++ b/src/99-systemd.rules @@ -7,12 +7,15 @@ ACTION!="add|change", GOTO="systemd_end" -ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="systemd_end" - -KERNEL=="tty[0-9]|tty1[0-2]", TAG+="systemd" -KERNEL=="ttyS*", TAG+="systemd" +SUBSYSTEM=="tty", KERNEL=="tty[0-9]|tty1[0-2]", TAG+="systemd" +SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*", TAG+="systemd" SUBSYSTEM=="block", KERNEL!="ram*|loop*", TAG+="systemd" +SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0" + +# Ignore encrypted devices with no identified superblock on it, since +# we are probably still calling mke2fs or mkswap on it. +SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0" # We need a hardware independent way to identify network devices. We # use the /sys/subsystem path for this. Current vanilla kernels don't