diff --git a/recipes-fixes/initscripts/files-dora/sysmocom-idu/volatiles b/recipes-fixes/initscripts/files-dora/sysmocom-idu/volatiles new file mode 100644 index 0000000..d42cabb --- /dev/null +++ b/recipes-fixes/initscripts/files-dora/sysmocom-idu/volatiles @@ -0,0 +1,36 @@ +# 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: +# +# where the items are separated by whitespace ! +# +# : d|f|l : (d)irectory|(f)ile|(l)ink +# +# A linking example: +# l root root 0777 /var/test /tmp/testfile +# f root root 0644 /var/test none +# +# Understanding links: +# When populate-volatile is to verify/create a directory or file, it will first +# check it's existence. If a link is found to exist in the place of the target, +# the path of the target is replaced with the target the link points to. +# Thus, if a link is in the place to be verified, the object will be created +# in the place the link points to instead. +# This explains the order of "link before object" as in the example above, where +# a link will be created at /var/test pointing to /tmp/testfile and due to this +# link the file defined as /var/test will actually be created as /tmp/testfile. +d root root 1777 /run/lock none +d root root 0755 /var/volatile/log none +d root root 1777 /var/volatile/tmp none +l root root 1777 /var/lock /run/lock +#l root root 0755 /var/log /var/volatile/log +l root root 0755 /var/run /run +l root root 1777 /var/tmp /var/volatile/tmp +l root root 1777 /tmp /var/tmp +d root root 0755 /var/lock/subsys none +f root root 0664 /var/log/wtmp none +f root root 0664 /var/run/utmp none +l root root 0644 /etc/resolv.conf /var/run/resolv.conf +f root root 0644 /var/run/resolv.conf none diff --git a/recipes-fixes/initscripts/files-master/sysmocom-idu/volatiles b/recipes-fixes/initscripts/files-master/sysmocom-idu/volatiles new file mode 100644 index 0000000..d42cabb --- /dev/null +++ b/recipes-fixes/initscripts/files-master/sysmocom-idu/volatiles @@ -0,0 +1,36 @@ +# 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: +# +# where the items are separated by whitespace ! +# +# : d|f|l : (d)irectory|(f)ile|(l)ink +# +# A linking example: +# l root root 0777 /var/test /tmp/testfile +# f root root 0644 /var/test none +# +# Understanding links: +# When populate-volatile is to verify/create a directory or file, it will first +# check it's existence. If a link is found to exist in the place of the target, +# the path of the target is replaced with the target the link points to. +# Thus, if a link is in the place to be verified, the object will be created +# in the place the link points to instead. +# This explains the order of "link before object" as in the example above, where +# a link will be created at /var/test pointing to /tmp/testfile and due to this +# link the file defined as /var/test will actually be created as /tmp/testfile. +d root root 1777 /run/lock none +d root root 0755 /var/volatile/log none +d root root 1777 /var/volatile/tmp none +l root root 1777 /var/lock /run/lock +#l root root 0755 /var/log /var/volatile/log +l root root 0755 /var/run /run +l root root 1777 /var/tmp /var/volatile/tmp +l root root 1777 /tmp /var/tmp +d root root 0755 /var/lock/subsys none +f root root 0664 /var/log/wtmp none +f root root 0664 /var/run/utmp none +l root root 0644 /etc/resolv.conf /var/run/resolv.conf +f root root 0644 /var/run/resolv.conf none diff --git a/recipes-fixes/initscripts/initscripts_dora.inc b/recipes-fixes/initscripts/initscripts_dora.inc new file mode 100644 index 0000000..5e69ea2 --- /dev/null +++ b/recipes-fixes/initscripts/initscripts_dora.inc @@ -0,0 +1,4 @@ +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-dora"], d)}:" + +PRINC="4" diff --git a/recipes-fixes/initscripts/initscripts_master.inc b/recipes-fixes/initscripts/initscripts_master.inc new file mode 100644 index 0000000..2a4815b --- /dev/null +++ b/recipes-fixes/initscripts/initscripts_master.inc @@ -0,0 +1,4 @@ +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESPATH =. "${@base_set_filespath(["${THISDIR}/files-master"], d)}:" + +PRINC="4" diff --git a/yocto-dora/initscripts_1.0.bbappend b/yocto-dora/initscripts_1.0.bbappend new file mode 100644 index 0000000..2e418b5 --- /dev/null +++ b/yocto-dora/initscripts_1.0.bbappend @@ -0,0 +1 @@ +require recipes-fixes/initscripts/${PN}_dora.inc diff --git a/yocto-master/initscripts_1.0.bbappend b/yocto-master/initscripts_1.0.bbappend new file mode 100644 index 0000000..fda46a2 --- /dev/null +++ b/yocto-master/initscripts_1.0.bbappend @@ -0,0 +1 @@ +require recipes-fixes/initscripts/${PN}_master.inc