From: Peter Hjalmarsson <xake@rymdraket.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: [RFC][NEW] Utility to find orphaned files
Date: Mon, 03 May 2010 15:34:35 +0200 [thread overview]
Message-ID: <1272893675.19261.16.camel@lillen> (raw)
In-Reply-To: <20100430162415.GA492@nibiru.local>
fre 2010-04-30 klockan 18:24 +0200 skrev Enrico Weigelt:
> * Daniel Pielmeier <billie@gentoo.org> schrieb:
>
> > What about searching the complete file system but using an exclude file where
> > you can put directories and files which should not be searched. It is tedious to
> > tell every path on the command-line. Also for instance if you specify /lib it
> > will also search under /lib/modules and I am sure you do not consider all
> > contents there as unneeded.
>
> hmm, perhaps there's some way to assign these files to some package ?
>
Eh, no and it should not be since files in that directory is kernel
modules, and most of the files there is created by "cd /usr/src/linux &&
make" or genkernel or something alike and it is supposed to be that way.
Looking at the contents of that directory is pretty easy to see if a
directory there should be left alone or removed (as there is just one
directory per kernel. not any longer running a kernel anymore? remove
the corresponding dir).
It is better to have the script not tuch that directory at all or at
most point out "the directory contains directories for more kernels then
the currently running (i.e. there is more then one dir) and it is
totally THIS big. You may want to take a look if you have files from
older kernels that you do not longer need."
That would leave up to the user to figure out what kernel modules to
keep and what kernel to pount. Or you suggest autocleaning of /boot
and /usr/src/linux-* as well? Dangerous!
next prev parent reply other threads:[~2010-05-03 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-25 11:18 [gentoo-dev] [RFC][NEW] Utility to find orphaned files Angelo Arrifano
2010-04-25 11:45 ` Brian Harring
2010-04-25 13:43 ` Daniel Pielmeier
2010-04-30 16:24 ` Enrico Weigelt
2010-05-03 13:34 ` Peter Hjalmarsson [this message]
2010-05-11 13:08 ` [gentoo-dev] " Angelo Arrifano
2010-04-25 15:34 ` [gentoo-dev] " Yuri Vasilevski
2010-04-25 17:10 ` Angelo Arrifano
2010-04-25 17:43 ` Benedikt Böhm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272893675.19261.16.camel@lillen \
--to=xake@rymdraket.net \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox