--- ./usr/initiator.h.orig 2022-10-19 09:51:34.971335865 +0200 +++ ./usr/initiator.h 2022-10-19 09:51:49.583323921 +0200 @@ -38,9 +38,9 @@ #define CONFIG_FILE ISCSI_CONFIG_ROOT"iscsid.conf" #define INITIATOR_NAME_FILE ISCSI_CONFIG_ROOT"initiatorname.iscsi" -#define PID_FILE "/run/iscsid.pid" +#define PID_FILE "/var/run/iscsid.pid" #ifndef LOCK_DIR -#define LOCK_DIR "/run/lock/iscsi" +#define LOCK_DIR "/var/lock/iscsi" #endif #define LOCK_FILE LOCK_DIR"/lock" #define LOCK_WRITE_FILE LOCK_DIR"/lock.write" --- ./libopeniscsiusr/idbm.c.orig 2022-10-19 09:52:02.531313334 +0200 +++ ./libopeniscsiusr/idbm.c 2022-10-19 09:52:18.175300549 +0200 @@ -93,7 +93,7 @@ #define ISCSI_END_REC "# END RECORD" #ifndef LOCK_DIR -#define LOCK_DIR "/run/lock/iscsi" +#define LOCK_DIR "/var/lock/iscsi" #endif #define LOCK_FILE LOCK_DIR"/lock" #define LOCK_WRITE_FILE LOCK_DIR"/lock.write"