Re: tftpboot cleanup script: your input needed

Johnny Robeson <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Thu, 2008-08-21 at 01:30 -0400, Warren Togami wrote:
> I'm writing a tftpboot cleanup script with the following logic:
> If it finds a vmlinuz-$NAME file, it looks for a matching 
> /opt/ltsp/$arch/lib/modules/$NAME.  If $NAME does not exist, then it was 
> removed from the chroot, and there is no reason to keep the 
> corresponding kernel in the tftpboot directory anymore.
> 
> Removals from the tftpboot directory happen only by a strict pattern, so 
> it is safe to whatever other content you have in that directory.  For 
> this reason I intend on adding this cleanup routine (after it is 
> thoroughly tested to be safe) to the standard ltsp-update-kernels script.
> 
> I need your distro's unique "patterns" of filenames that need to be 
> cleaned up based upon $NAME.  For example, here are Fedora's patterns. 
> Please let me know your patterns only if they differ from this, so I can 
> add it to the cleanup list.
> 
> vmlinuz-$NAME
> config-$NAME
> System.map-$NAME
> initrd-$NME.img
> wraplinux-nbi-$NAME.img
> elf-$NAME.img
> 
> Warren Togami
> [email protected]

we don't have any nbi stuff yet, but our kernel and initramfs are (by
default)

 initramfs-genkernel-$ARCH-$NAME
 kernel-genkernel-$ARCH-$NAME

of course, users can provide their own kernels, but the script does not
have to take them into account IMO




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.