From owner-freebsd-current@FreeBSD.ORG Sun Aug 14 11:51:37 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 669E2106566C for ; Sun, 14 Aug 2011 11:51:37 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24B6B8FC08 for ; Sun, 14 Aug 2011 11:51:37 +0000 (UTC) Received: by vws18 with SMTP id 18so4500187vws.13 for ; Sun, 14 Aug 2011 04:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=XLGz6bicVLOME1XK885IuDEbyjzwrt9Feunpfz1ODWs=; b=vorSwjt6aNF+iYZmaG8hfmEw7IpcDcT26LdqTWnPkRoaUWEJAbFmpPgLPsbfhXvsaC H6xhWf4TamYVMTWaOlHX5YQUqTkWKiuL/MNBi3SPzNqvQ0Vwaa+jl2SY6r9nhmxJr1p3 V7fWHbqNm9ORYOKx8rSM3dunrY9HKxMXC5Hgs= Received: by 10.52.179.35 with SMTP id dd3mr2654897vdc.438.1313322696497; Sun, 14 Aug 2011 04:51:36 -0700 (PDT) Received: from localhost (raskin.torservers.net [74.120.15.150]) by mx.google.com with ESMTPS id p11sm892617vcu.27.2011.08.14.04.51.33 (version=SSLv3 cipher=OTHER); Sun, 14 Aug 2011 04:51:35 -0700 (PDT) From: Test Rat To: Eduardo Morras References: <20110813195127.GA34295@freebsd.org> <35403.3654126853$1313318383@news.gmane.org> <86sjp4z0xa.fsf@gmail.com> Date: Sun, 14 Aug 2011 15:51:29 +0400 In-Reply-To: <86sjp4z0xa.fsf@gmail.com> (Test Rat's message of "Sun, 14 Aug 2011 15:29:21 +0400") Message-ID: <86bovsyzwe.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: [rfc] replacing /boot/kernel.old with a unique directory name X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 11:51:37 -0000 Test Rat writes: > Eduardo Morras writes: > >> At 22:06 13/08/2011, Steven Hartland wrote: >>>> i just had the following idea: how about instead of copying the >>>> current kernel >>>>to /boot/kernel.old and then installing the new one under /boot/kernel as the >>>> results of target installkernel, we create a unique directory name >>>> for the old >>>>kernel? >>> >>>The default size of / is likely your biggest problem. >> >> Don't know how much compresable is /boot/kernel.old but tar with -z >> or -j may be a workaround. We can extract on demand and swap current >> /boot/kernel with new /boot/kernel. Other way of do it is link >> /boot/kernel to current kernel and update it, but i don't know >> (again) if it would work in single user mode. > > There is kgzldr that lets you boot compressed kernels. Try > > $ gzip /boot/kernel/* > $ reboot Nevermind, I've confused it with gzip support in loader, it also has bzip2 support which for some reason doesn't work for me bzf_read: BZ2_bzDecompress returned -3