Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40347 - [open-iscsi] Updating package overwrites /etc/iscsi/initiatorname.iscsi

Attached to Project: Community Packages
Opened by Andreas Turriff (aturriff) - Tuesday, 13 May 2014, 18:16 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 26 February 2015, 17:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

On the most recent package update, I discovered that open-iscsi 2.0_873-6 overwrites the initiator name configuration. This potentially causes iscsi connections to fail, particularly if the target uses initiator names for access control. This file should be considered a configuration file and not overwritten on package update.

Steps to reproduce:

1) Install and configure open-iscsi
2) Update open-iscsi
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 26 February 2015, 17:12 GMT
Reason for closing:  No response
Comment by Doug Newgard (Scimmia) - Wednesday, 14 May 2014, 03:40 GMT
This file is already in the backup array, it should only be overwritten if you've made no changes to it. If you've made changes, a pacnew file should be created. What exactly is happening?
Comment by Andreas Turriff (aturriff) - Wednesday, 14 May 2014, 03:41 GMT
Didn't change it, just used the generated initiator name. Had my setup randomly broken when the file got changed by the next update.
Comment by Doug Newgard (Scimmia) - Wednesday, 14 May 2014, 03:49 GMT
"Didn't change it, just used the generated initiator name."

Meaning what? Was it changed or not? If it wasn't changed, overwriting it shouldn't affect anything at all.

Edit: Ok, I see the problem. The file isn't being overwritten with a package file, but the install script is regenerating the Initiatorname directly to the file in-system.
Comment by Sergej Pupykin (sergej) - Friday, 30 May 2014, 11:05 GMT
.install contains

if [ -z $(<etc/iscsi/initiatorname.iscsi) ]; then

as I understand it do it only if it was empty.
Comment by Andreas Turriff (aturriff) - Friday, 30 May 2014, 14:50 GMT
Is the problem that the script is checking a relative path? I have no idea what the CWD is when that statement is executed, but I don't think it's guaranteed to be '/'.
Comment by Sergej Pupykin (sergej) - Tuesday, 24 June 2014, 11:35 GMT
pacman should change dir to / or dir specified in --root key before executing .install.
Comment by Sergej Pupykin (sergej) - Friday, 12 September 2014, 13:10 GMT
is this issue still reproducible?

Loading...