mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: Add ap bus coldplug replay trigger for ap.rules
Add an additional trigger to the zdev-generated 41-ap.rules file. This
trigger will check the bindings_complete_count value during coldplug
replay of the ap bus, which allows the udev rule to handle the case
where zcrypt has already fired the BINDINGS==complete with
COMPLETECOUNT==1 before the udev rule was accessible (example: before
rootfs has been mounted). Without this, it's possible for the rule to
never fire despite the initial bindings having completed.
While it was always possible for zcrypt to be forced onto initrd, it
becomes far more likely with changes like 14c977768 ("zkey/dracut: Add
a dracut config file for zkey").
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
3f7b459606
commit
6532bf02c2
@@ -286,6 +286,8 @@ static exit_code_t ap_write_type_udev(char *ap, char *aq, bool autoconf)
|
||||
fprintf(fd, "# Generated by chzdev\n");
|
||||
|
||||
/* Triggers. */
|
||||
fprintf(fd, "ACTION==\"add\", DEVPATH==\"/bus/ap\", "
|
||||
"ATTR{bindings_complete_count}!=\"0\", GOTO=\"cfg_ap\"\n");
|
||||
fprintf(fd, "ACTION==\"change\", SUBSYSTEM==\"ap\", "
|
||||
"DEVPATH==\"/devices/ap\", ENV{BINDINGS}==\"complete\", "
|
||||
"ENV{COMPLETECOUNT}==\"1\", GOTO=\"cfg_ap\"\n");
|
||||
|
||||
Reference in New Issue
Block a user