Use Openrc and runs but, despites a error: /etc/init.d/mtab: línea 15: [: -l: se esperaba un operador unario * Updating /etc/mtab ... [ ok ] Reproducible: Always Steps to Reproduce: 1. echo "sys-apps/openrc" >> /etc/portage/package.keywords 2. emerge openrc 3. etc-update 4. /etc/init.d/mtab restart and shows... etc/init.d/mtab: línea 15: [: -l: se esperaba un operador unario * Updating /etc/mtab ... [ ok ] Actual Results: Mtab init script have a syntax error /etc/init.d/mtab: línea 15: [: -l: se esperaba un operador unario * Updating /etc/mtab ... [ ok ]
Created attachment 285297 [details] rc.log Log of openrc
Created attachment 285299 [details] openrc-0.9.0-r1.ebuild Ebuild of openrc, with included openrc-0.9.0-mtab_fix_operator.patch
Created attachment 285301 [details, diff] openrc-0.9.0-mtab_fix_operator.patch Patch for fixing missing operator in init script of openrc
The "! -w" portion of this patch is not correct because we only want to test for whether or not /etc/mtab is a symbolic link. If it is, we do not update it. Also, the comment is incorrect for the same reason.
The issue was the use of -l instead of -L in the if statement. This has been fixed in commit 7a6dbed and will be included in the next release of openrc. Thanks for the report.