From owner-freebsd-current@freebsd.org Sat Jan 28 21:23:22 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7876CC6C6E for ; Sat, 28 Jan 2017 21:23:22 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 813F51EAC for ; Sat, 28 Jan 2017 21:23:22 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 80557CC6C6D; Sat, 28 Jan 2017 21:23:22 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FF23CC6C6C for ; Sat, 28 Jan 2017 21:23:22 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35EDB1EAB; Sat, 28 Jan 2017 21:23:22 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-qk0-x22f.google.com with SMTP id 11so95792653qkl.3; Sat, 28 Jan 2017 13:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yYzj+QdXXWiW0UeKmqh5rjjgRMspeadWtGzJcjyi8Ok=; b=qqvBueT2KKKzjZUA/QRGsRByt41ai/4ZY1u0Us9pMyLeAJ2R24s+mgsWhKImTKryGn TYrZhkFC2Nh6ShSv5t9vZnti3YB35y4vu+5OTGlJHynmT4eEnYztFwa3X0oWRV8mvH0E NIuM050n7JCBbOh3s4Uq8xTbGW68RVXMWz+oZe3hY4VQgZRoNdeaRaDlTOzYOKLD7OB6 se8HnJ8N+4cOWOIQqf3/4ss/i2WvQs0cvfhQHIsUv1fYpG9pSEHOM42erMKjFw2IoHvL vVjF9mojxGDrrW45x2r671cJ7ch3Q7K08T4h/SBze0Alj6roB+cDjebyt51Zr7ido3Rx NXpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yYzj+QdXXWiW0UeKmqh5rjjgRMspeadWtGzJcjyi8Ok=; b=tb7wib3Xkx+2NCb/2EvTFl8rNIr3Ey2zN5J0oUwn/I+gcJwUTWDNCLQ2mRCcLBEOGG mg6MYV7sNI64bgr6avoJ5NjS7C+m1Rl6/2OgBPcMmWzZL91l/pgxiDzHCU91E+LXYhKr 2zznrdgWQ29GG9KFQGZd9t8qwciPfQwJc9tMdYUGvQnccgSpwyAN5JBNUIMzefCHeYqf SArgwugRVjYXT6pymn6c16ZBah/eXW1PI6nCiaBYCqyn4sI7lDFSq1vOfaQBXOoT52ui Fz7WXT/kVxS43Ki9/yaBmB7oqqLFYSnf0LV9hXVFc+r5qBHWDC8EM8zuUr6OnbDFouLQ rDsg== X-Gm-Message-State: AIkVDXJLh3qRD5YtV545/PtSN7qcLrTEmUV5KmzAuEDv8dxCJCm4PTBN25xmHu3iU7aAFWUKkAmaHEIVijgqZw== X-Received: by 10.55.25.42 with SMTP id k42mr16024738qkh.297.1485638601379; Sat, 28 Jan 2017 13:23:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.84.230 with HTTP; Sat, 28 Jan 2017 13:23:20 -0800 (PST) In-Reply-To: References: <373376e9-2a30-3cb4-ec60-b5b5f27de596@freebsd.org> From: Ngie Cooper Date: Sat, 28 Jan 2017 13:23:20 -0800 Message-ID: Subject: Re: gptzfsboot grew a lot after skein support was added; need knob to control bloat To: Allan Jude Cc: Warner Losh , Julian Elischer , Toomas Soome , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 28 Jan 2017 21:23:22 -0000 On Sat, Jan 28, 2017 at 1:03 PM, Ngie Cooper wrote: > On Sat, Jan 28, 2017 at 12:17 PM, Ngie Cooper wrote: > ... > >> After some creative hacking... tada! >> >> # find /usr/obj/usr/src/sys/boot/ -type f -name \*zfsboot -exec ls -l {} \; >> -rw-r--r-- 1 root wheel 131584 Jan 28 12:07 >> /usr/obj/usr/src/sys/boot/i386/zfsboot/zfsboot >> -rw-r--r-- 1 root wheel 47527 Jan 28 12:07 >> /usr/obj/usr/src/sys/boot/i386/gptzfsboot/gptzfsboot > > Bah. It's still 2kB too big. I'll see if I can free up some more space > in the text area (there was a patch kicking around at $work that might > alleviate this a few more kB). Ok, found the patch. After applying all the changes, it's finally under 44kB and I can write the bootcode to my disk: $ sudo gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 partcode written to da0p1 bootcode written to da0 -Ngie