FS#23598 - [initscripts] checks for inexistent environment variable

Attached to Project: Arch Linux
Opened by Matthias Dienstbier (fs4000) - Tuesday, 05 April 2011, 20:51 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 22 April 2011, 00:17 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I think this commit has to be reverted because mkinitcpio doesn't export cmdline anymore: http://projects.archlinux.org/initscripts.git/commit/?id=3d9fbd69fbab72ccdbdfda584b732636cece908c
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 22 April 2011, 00:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  initscripts 2011.04.1-1
Comment by Matthias Dienstbier (fs4000) - Tuesday, 05 April 2011, 21:13 GMT
This will also have to be changed: http://projects.archlinux.org/initscripts.git/commit/?id=96d9cf3c924d27cef23967e9427c18c34395d532

BTW: This commit causes two syntax errors: http://projects.archlinux.org/initscripts.git/commit/rc.sysinit?id=71a1b74eb778540d412705b09a24f1d2ba123a2b
My suggestion:
if ! [[ -L /etc/mtab ]]; then
if [[ -x /bin/findmnt && -e /proc/self/mountinfo ]]; then
/bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
else
cat /proc/mounts >| /etc/mtab
fi
fi

Loading...