FS#52680 - [bind] post_install script runs before the user is created

Attached to Project: Arch Linux
Opened by Damjan Georgievski (damjan) - Monday, 23 January 2017, 03:30 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 20 February 2017, 23:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The bind package installs a sysusers.conf file as /usr/lib/sysusers.d/bind.conf, so then the systemd pacman hook in /usr/share/libalpm/hooks/systemd-sysusers.hook will run and update the system users. Unfortunetally that happens only after the package post_install script runs, resulting in the following error:


$ sudo pacman -S bind
resolving dependencies...
looking for conflicting packages...

Packages (1) bind-9.11.0.P2-1

Total Download Size: 0,31 MiB
Total Installed Size: 0,93 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
bind-9.11.0.P2-1-x86_64 312,3 KiB 372K/s 00:01 [###############################################] 100%
(1/1) checking keys in keyring [###############################################] 100%
(1/1) checking package integrity [###############################################] 100%
(1/1) loading package files [###############################################] 100%
(1/1) checking for file conflicts [###############################################] 100%
(1/1) checking available disk space [###############################################] 100%
:: Processing package changes...
(1/1) installing bind [###############################################] 100%
chown: invalid group: ‘root:named’
:: Running post-transaction hooks...
(1/2) Updating system user accounts...
(2/2) Creating temporary files...
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Monday, 20 February 2017, 23:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  bind-9.11.0.P3-2

Loading...