Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 2c7775c

Browse files
committed
B #221: Don't recontextualize on swap cold-plug
Closes #221
1 parent 811cf98 commit 2c7775c

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib/udev/rules.d/65-context.rules##apk.one

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ SUBSYSTEM=="scsi", ACTION=="change", \
3030
# Handle swap hot-attach
3131
SUBSYSTEM=="block", ACTION=="add", \
3232
ENV{ID_FS_TYPE}=="swap", \
33+
ENV{DM_ACTIVATION}!="1", \
3334
RUN+="/sbin/service one-context-force restart"

src/lib/udev/rules.d/65-context.rules##deb.one

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ SUBSYSTEM=="scsi", ACTION=="change", \
3535
# Handle swap hot-attach
3636
SUBSYSTEM=="block", ACTION=="add", \
3737
ENV{ID_FS_TYPE}=="swap", \
38+
ENV{DM_ACTIVATION}!="1", \
3839
RUN+="/usr/sbin/service one-context-force start"

src/lib/udev/rules.d/65-context.rules##rpm.systemd.one

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ SUBSYSTEM=="scsi", ACTION=="change", \
3333
# Handle swap hot-attach
3434
SUBSYSTEM=="block", ACTION=="add", \
3535
ENV{ID_FS_TYPE}=="swap", \
36+
ENV{DM_ACTIVATION}!="1", \
3637
RUN+="/usr/bin/systemctl --no-block start one-context-force.service"

src/lib/udev/rules.d/65-context.rules##rpm.sysv.one

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ SUBSYSTEM=="scsi", ACTION=="change", \
2424
# Handle swap hot-attach
2525
SUBSYSTEM=="block", ACTION=="add", \
2626
ENV{ID_FS_TYPE}=="swap", \
27+
ENV{DM_ACTIVATION}!="1", \
2728
RUN+="/sbin/service one-context-force start"

0 commit comments

Comments
 (0)