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!
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!
FS#49458 - [systemd] add_systemd_unit should check for already provisioned binaries
Attached to Project:
Arch Linux
Opened by Andrei Pozolotin (random-archer) - Tuesday, 24 May 2016, 17:11 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 May 2016, 12:52 GMT
Opened by Andrei Pozolotin (random-archer) - Tuesday, 24 May 2016, 17:11 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 May 2016, 12:52 GMT
|
DetailsDescription:
1) when /etc/mkinitcpio.conf includes HOOKS="base ..." one would expect /bin/busybox to be provisioned in the initramfs from the /usr/lib/initcpio/busybox https://git.archlinux.org/mkinitcpio.git/tree/install/base 2) however, add_systemd_unit is looking only for host binaries https://git.archlinux.org/svntogit/packages.git/tree/trunk/initcpio-install-systemd?h=packages/systemd#n71 3) so, when add_systemd_unit encounters stanza Exec*=/bin/busybox, it produces error ==> ERROR: file not found: `/bin/busybox' 4) therefore add_systemd_unit should check for already provisioned binaries, for example: Exec*) # don't add binaries unless they are required if [[ ${values[0]:0:1} != '-' ]]; then local exec="${values[0]}" if [[ -f $BUILDROOT$exec ]] ; then quiet "use existing $exec" else quiet "use resolved $exec" add_binary "$exec" fi fi ;; |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 28 May 2016, 12:52 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#49460
Saturday, 28 May 2016, 12:52 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#49460
see function "add_systemd_unit_X()":
https://aur.archlinux.org/packages/mkinitcpio-systemd-tool/
https://aur.archlinux.org/cgit/aur.git/tree/mkinitcpio-install.sh?h=mkinitcpio-systemd-tool