initscripts: populate-volatile: improve config file parsing

This improves the config file parsing to permit blank lines and
comments following an entry or preceeded by whitespace.

(From OE-Core rev: 415eaacb83b1c6df5210fb423e3e96e530b1dc42)

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mans Rullgard
2016-12-01 12:30:34 +00:00
committed by Richard Purdie
parent 494012830f
commit 438d123051
2 changed files with 7 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
# This configuration file lists filesystem objects that should get verified
# during startup and be created if missing.
#
# Every line must either be a comment starting with #
# or a definition of format:
# Entries have the following format:
# <type> <owner> <group> <mode> <path> <linksource>
# where the items are separated by whitespace !
#
# The # character introduces a comment lasting until end of line.
# Blank lines are ignored.
#
# <type> : d|f|l : (d)irectory|(f)ile|(l)ink
#
# A linking example: