* [PATCH] kernel: remove unused 'etc' directory
@ 2012-09-12 13:41 Mark Asselstine
2012-09-12 18:20 ` Saul Wold
0 siblings, 1 reply; 5+ messages in thread
From: Mark Asselstine @ 2012-09-12 13:41 UTC (permalink / raw)
To: openembedded-core
Along with checks to remove empty modprobe.d and modules-load.d
directories we can add a similar check and removal of the etc
directory. This will avoid warnings by the sanity checker.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
---
There is some concern that removing this directory could cause issues
if folks are adding to etc in a bbappend and not checking for and
creating this directory. I don't believe this is an issue as if you
want to add something to etc it should be done as part of a
populate_packages_prepend or earlier since there are sanity checks run
as part of populate_packages, so the removal here is being done at the
latest possible point in the process (populate_packages_prepend in a
bbappend will run before the populate_packages_prepend in
kernel.bbclass).
meta/classes/kernel.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5e04fda..decf6f5 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -468,7 +468,7 @@ python populate_packages_prepend () {
# avoid warnings. removedirs only raises an OSError if an empty
# directory cannot be removed.
dvar = d.getVar('PKGD', True)
- for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]:
+ for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc/" % (dvar)]:
if len(os.listdir(dir)) == 0:
os.rmdir(dir)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel: remove unused 'etc' directory
2012-09-12 13:41 [PATCH] kernel: remove unused 'etc' directory Mark Asselstine
@ 2012-09-12 18:20 ` Saul Wold
2012-09-12 19:35 ` Mark Asselstine
0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2012-09-12 18:20 UTC (permalink / raw)
To: Mark Asselstine; +Cc: openembedded-core
I assume this patch is for Denzil? It seems that the current OE-Core
master has etc in that list.
Please confirm
Sau!
On 09/12/2012 06:41 AM, Mark Asselstine wrote:
> Along with checks to remove empty modprobe.d and modules-load.d
> directories we can add a similar check and removal of the etc
> directory. This will avoid warnings by the sanity checker.
>
> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
> ---
>
> There is some concern that removing this directory could cause issues
> if folks are adding to etc in a bbappend and not checking for and
> creating this directory. I don't believe this is an issue as if you
> want to add something to etc it should be done as part of a
> populate_packages_prepend or earlier since there are sanity checks run
> as part of populate_packages, so the removal here is being done at the
> latest possible point in the process (populate_packages_prepend in a
> bbappend will run before the populate_packages_prepend in
> kernel.bbclass).
>
> meta/classes/kernel.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 5e04fda..decf6f5 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -468,7 +468,7 @@ python populate_packages_prepend () {
> # avoid warnings. removedirs only raises an OSError if an empty
> # directory cannot be removed.
> dvar = d.getVar('PKGD', True)
> - for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]:
> + for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc/" % (dvar)]:
> if len(os.listdir(dir)) == 0:
> os.rmdir(dir)
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel: remove unused 'etc' directory
2012-09-12 18:20 ` Saul Wold
@ 2012-09-12 19:35 ` Mark Asselstine
2012-09-18 16:39 ` Scott Garman
0 siblings, 1 reply; 5+ messages in thread
From: Mark Asselstine @ 2012-09-12 19:35 UTC (permalink / raw)
To: Saul Wold, scott.a.garman; +Cc: openembedded-core
On September 12, 2012 11:20:05 Saul Wold wrote:
> I assume this patch is for Denzil? It seems that the current OE-Core
> master has etc in that list.
>
> Please confirm
>
> Sau!
Saul,
Sorry I got mixed up on my branches there and didn't notice your change,
thanks for straightening me out. Scott any chance we can get Saul's commit
963742f5a9bc [kernel: Fix packaging issue] cherry-picked to Denzil?
Mark
>
> On 09/12/2012 06:41 AM, Mark Asselstine wrote:
> > Along with checks to remove empty modprobe.d and modules-load.d
> > directories we can add a similar check and removal of the etc
> > directory. This will avoid warnings by the sanity checker.
> >
> > Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
> > CC: Bruce Ashfield <bruce.ashfield@windriver.com>
> > ---
> >
> > There is some concern that removing this directory could cause issues
> > if folks are adding to etc in a bbappend and not checking for and
> > creating this directory. I don't believe this is an issue as if you
> > want to add something to etc it should be done as part of a
> > populate_packages_prepend or earlier since there are sanity checks run
> > as part of populate_packages, so the removal here is being done at the
> > latest possible point in the process (populate_packages_prepend in a
> > bbappend will run before the populate_packages_prepend in
> > kernel.bbclass).
> >
> > meta/classes/kernel.bbclass | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> > index 5e04fda..decf6f5 100644
> > --- a/meta/classes/kernel.bbclass
> > +++ b/meta/classes/kernel.bbclass
> > @@ -468,7 +468,7 @@ python populate_packages_prepend () {
> >
> > # avoid warnings. removedirs only raises an OSError if an empty
> > # directory cannot be removed.
> > dvar = d.getVar('PKGD', True)
> >
> > - for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" %
> > (dvar)]:>
> > + for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" %
(dvar), "%s/etc/" % (dvar)]:
> > if len(os.listdir(dir)) == 0:
> > os.rmdir(dir)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel: remove unused 'etc' directory
2012-09-12 19:35 ` Mark Asselstine
@ 2012-09-18 16:39 ` Scott Garman
2012-09-18 18:04 ` Mark Asselstine
0 siblings, 1 reply; 5+ messages in thread
From: Scott Garman @ 2012-09-18 16:39 UTC (permalink / raw)
To: Mark Asselstine; +Cc: openembedded-core
On 09/12/2012 12:35 PM, Mark Asselstine wrote:
> On September 12, 2012 11:20:05 Saul Wold wrote:
>> I assume this patch is for Denzil? It seems that the current OE-Core
>> master has etc in that list.
>>
>> Please confirm
>>
>> Sau!
>
> Saul,
>
> Sorry I got mixed up on my branches there and didn't notice your change,
> thanks for straightening me out. Scott any chance we can get Saul's commit
> 963742f5a9bc [kernel: Fix packaging issue] cherry-picked to Denzil?
>
> Mark
Hi Mark,
Yes, I have just pulled that into my sgarman/denzil-next branches, to be
queued up for Autobuilder testing ASAP.
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel: remove unused 'etc' directory
2012-09-18 16:39 ` Scott Garman
@ 2012-09-18 18:04 ` Mark Asselstine
0 siblings, 0 replies; 5+ messages in thread
From: Mark Asselstine @ 2012-09-18 18:04 UTC (permalink / raw)
To: Scott Garman; +Cc: openembedded-core
On September 18, 2012 09:39:46 Scott Garman wrote:
> On 09/12/2012 12:35 PM, Mark Asselstine wrote:
> > On September 12, 2012 11:20:05 Saul Wold wrote:
> >> I assume this patch is for Denzil? It seems that the current OE-Core
> >> master has etc in that list.
> >>
> >> Please confirm
> >>
> >> Sau!
> >
> > Saul,
> >
> > Sorry I got mixed up on my branches there and didn't notice your change,
> > thanks for straightening me out. Scott any chance we can get Saul's commit
> > 963742f5a9bc [kernel: Fix packaging issue] cherry-picked to Denzil?
> >
> > Mark
>
> Hi Mark,
>
> Yes, I have just pulled that into my sgarman/denzil-next branches, to be
> queued up for Autobuilder testing ASAP.
Thanks Scott and Saul. Sorry for the initial confusion. I will be sure to look
closer at the tree/branches next time around.
Mark
>
> Scott
>
> --
> Scott Garman
> Embedded Linux Engineer - Yocto Project
> Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-18 18:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 13:41 [PATCH] kernel: remove unused 'etc' directory Mark Asselstine
2012-09-12 18:20 ` Saul Wold
2012-09-12 19:35 ` Mark Asselstine
2012-09-18 16:39 ` Scott Garman
2012-09-18 18:04 ` Mark Asselstine
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.