gh-138: Run contextualization only from CDROM

(apply udev changes to Debians and Alpines)
pull/140/head
Vlastimil Holer 6 years ago
parent f8e66f94a3
commit 0d91699631
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -4,6 +4,7 @@ SUBSYSTEM=="net", ACTION=="add", \
# On CONTEXT CD-ROM change the immediate reconfiguration is triggered. # On CONTEXT CD-ROM change the immediate reconfiguration is triggered.
SUBSYSTEM=="block", ACTION=="change", \ SUBSYSTEM=="block", ACTION=="change", \
ENV{ID_CDROM}=="1", \
ENV{ID_FS_TYPE}=="iso9660" ENV{ID_FS_LABEL_ENC}=="CONTEXT", \ ENV{ID_FS_TYPE}=="iso9660" ENV{ID_FS_LABEL_ENC}=="CONTEXT", \
RUN+="/sbin/service one-context-reconfigure restart" RUN+="/sbin/service one-context-reconfigure restart"

@ -7,6 +7,7 @@ SUBSYSTEM=="net", ACTION=="add", \
# every second event and triggers systemd service one-context-reconfigure. # every second event and triggers systemd service one-context-reconfigure.
# This service also stops any existing delayed reconfiguration. # This service also stops any existing delayed reconfiguration.
SUBSYSTEM=="block", ACTION=="change", \ SUBSYSTEM=="block", ACTION=="change", \
ENV{ID_CDROM}=="1", \
ENV{ID_FS_TYPE}=="iso9660" ENV{ID_FS_LABEL_ENC}=="CONTEXT", \ ENV{ID_FS_TYPE}=="iso9660" ENV{ID_FS_LABEL_ENC}=="CONTEXT", \
ENV{SEQNUM}=="*[02468]", \ ENV{SEQNUM}=="*[02468]", \
RUN+="/usr/sbin/service one-context-reconfigure start" RUN+="/usr/sbin/service one-context-reconfigure start"

Loading…
Cancel
Save