Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755290Ab3GJUyk (ORCPT ); Wed, 10 Jul 2013 16:54:40 -0400 Received: from fieldses.org ([174.143.236.118]:35962 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754908Ab3GJUyj (ORCPT ); Wed, 10 Jul 2013 16:54:39 -0400 Date: Wed, 10 Jul 2013 16:54:34 -0400 To: Dave Jones , Linus Torvalds , Linux Kernel , Ingo Molnar , Thomas Gleixner , Peter Anvin Subject: Re: scheduling while atomic & hang. Message-ID: <20130710205434.GC22305@fieldses.org> References: <20130704015525.GA8486@redhat.com> <20130704074902.GA32211@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130704074902.GA32211@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: "J. Bruce Fields" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1348 Lines: 37 On Thu, Jul 04, 2013 at 03:49:02AM -0400, Dave Jones wrote: > I don't use the auto config, because I end up filling up /boot > unless I go through and clean them out by hand every time I install > a new one (which I do probably a dozen or so times a day). > Is there some easy way to prune old builds I'm missing ? I run this by hand every now and then. I'm probably doing it all wrong. --b. #!/bin/bash # because I use CONFIG_LOCALVERSION_AUTO, not the same version again and # again, /boot and /lib/modules/ eventually fill up. # Dumb script to purge that stuff: ssh "root@$1" ' for f in $(ls /lib/modules); do if rpm -qf "/lib/modules/$f" >/dev/null; then echo "keeping $f (installed from rpm)" elif [ $(uname -r) = "$f" ]; then echo "keeping $f (running kernel) " else echo "removing $f" rm -f "/boot/initramfs-$f.img" "/boot/System.map-$f" rm -f "/boot/vmlinuz-$f" "/boot/config-$f" rm -rf "/lib/modules/$f" new-kernel-pkg --remove $f fi done ' -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/