dracut's usrmount chokes on comments in fstab, where the 2nd word is /usr Reproducible: Always
Created attachment 303493 [details, diff] Make usrmount skip comments in fstab Patch as submitted to initramfs on kernel.org: http://thread.gmane.org/gmane.linux.kernel.initramfs/2496
@Dennis, patch well done, for me.
(In reply to comment #2) > @Dennis, patch well done, for me. Thanks! On initramfs@ I added the remark that the patch is dodgy, because I requires the # comment to be the first character on a line. This is not true if IFS contains the usual whitespaces, in which case read will already strip whitespace. So the patch should be safe for all cases.
Fixed in dracut-017. I have applied upstream's version of a patch. Thank you for the report and submitting to initramfs ml!
Can you confirm it works as expected?
(In reply to comment #5) > Can you confirm it works as expected? My system still boots with 017, but I doubt that the following expressions are equal: [ "${_dev%%#*}" != "$_dev" ] vs. my original line: [ "${_dev###}" != "$_dev" ] The upstream line parameter expansion removes comments from the end of the line, while mine checks whether the line consists only of a comment (i.e. begins with a comment character). Did anyone test whether a line as the following still works, or whether it is skipped? /dev/null /usr none defaults 0 0 # comment