Arch Linux

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#28582 - [initscripts] Typo in /etc/rc.d/functions prevents unmounting

Attached to Project: Arch Linux
Opened by Jan (DosAmp) - Wednesday, 22 February 2012, 10:47 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 22 February 2012, 13:33 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In a VirtualBox installation, I tried to reinstall the VBox additions for the current kernel and received a syntax error in /etc/rc.d/functions on line 506. Replacing the < with a $ sign fixes a problem.

- done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /)
+ done < $(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /)

Additional info:
* Affected package: initscripts 2012.02.1-1
* Steps to reproduce: use any script that uses the umount_all() function
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 22 February 2012, 13:33 GMT
Reason for closing:  Not a bug
Comment by Karol Błażewicz (karol) - Wednesday, 22 February 2012, 11:43 GMT
[karol@black ~]$ head -1 /etc/rc.d/functions
#!/bin/bash

Are you using bash? Arch scripts don't support dash.
Comment by Jan (DosAmp) - Wednesday, 22 February 2012, 13:20 GMT
Thanks and sorry for my ignorance. Process substitution (http://www.gnu.org/software/bash/manual/bashref.html#Process-Substitution) was an unknown bashism to me.

It works when I edit the Makeself executable (VBoxLinuxAdditions.run) and change the script variable from /bin/sh to /bin/bash.

Even better though, I now use the virtualbox-archlinux-additions package from [community].

Loading...