From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KMOEK7PdHmGYSwAAgWs5BA (envelope-from ) for ; Fri, 20 Aug 2021 00:39:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uP07J7PdHmGUdAAAB5/wlQ (envelope-from ) for ; Thu, 19 Aug 2021 22:39:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF75729B5B for ; Fri, 20 Aug 2021 00:39:46 +0200 (CEST) Received: from localhost ([::1]:38936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGqhN-0001KS-6h for larch@yhetil.org; Thu, 19 Aug 2021 18:39:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGqhE-0001J5-Aq for help-guix@gnu.org; Thu, 19 Aug 2021 18:39:36 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:46672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGqhB-0007wG-3h for help-guix@gnu.org; Thu, 19 Aug 2021 18:39:34 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id E750140C0B; Fri, 20 Aug 2021 00:39:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1629412770; x=1631227171; bh=9sdrRk980A+GTFyWkOnAIzBUTuY5z86H3Xx x/N8ICm0=; b=MKYUYSW8BWsGbrzzXl+1pOxXyeE3Vas6GzFgrxedozoN+y+ZuE4 5LMios3C/O3QZaCGa6PV3ZdH31zC7jjkSi8iD+Fpzyw6MyB5WhdHRmsHkd7qBmRJ AdWaXOe2zxxe/sc0THZWyFkdC95o4M1TFOVT7PsYoiuGPzsmFHLIdFoUriLZ38yE fD1NQwpqgUV79EHOHShb89NJzpPkVHZVomMRJuL+33HQvRHmR7X68vs2Z9mLwSYr LGC+IyuYsy2eBA84BrkpYe+iz09+FUDfNz34TxY2JWO5fzuusSYKF7Qs3RDgf8kW FRqikPWcf3Rc31p3zuAxT2NvA4oJJ9pMOwrak6xHWd5yJgA0oTXTq0OugnJNMwVf Xk9ESHAcQxxOU3RxCtHKp5wB1esss2H2pkhTwOw8Ar9pJ+rRu6zBe91a0SOL9D5d OPlK8FE5xgCg28CzTABeVBYP5IV9xWZpL3XgNssmSAna+BWQNcscWTQJzCAfCySu 03E1gFZQAJlITuVcLXAu5g8jZaSGMuAWt8tEWPSTCVnxcwSWONICYrr6jIVUosuE JcLfrNJZgE7HPqclBgZPKLiwF7z5ckhHuDXjTMc1WQhauWueId9SAGSjgO4l5vPG Wbt0aUQ5kJhBG/6VGaE6hoizx1lasz78fXp28oxcEu/7j3ZAMBAzMHGs= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hhFhVfenAZbz; Fri, 20 Aug 2021 00:39:30 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id 59E534054F; Fri, 20 Aug 2021 00:39:30 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 017EE82F; Fri, 20 Aug 2021 00:39:29 +0200 (CEST) From: Thiago Jung Bauermann To: Roland Everaert Cc: "help-guix@gnu.org" Subject: Re: Librem Mini with pureboot/head don't boot GuixSD Date: Thu, 19 Aug 2021 19:39:22 -0300 Message-ID: <1661974.YvECvzcvlD@popigai> In-Reply-To: References: <6aSjg7iYcJWpR7Q-nXpsq5dPo9ffUzh5f9l_jm-ZjoJYtCqXhRTs4Ln-Cgd6FCcP4nr48P7A3jmI0H-dkpuwYLnt1wTSTziwwKjJNNqBMCU=@protonmail.com> <125682436.G5Nuijvvs6@popigai> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=95.128.36.40; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629412787; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9sdrRk980A+GTFyWkOnAIzBUTuY5z86H3Xxx/N8ICm0=; b=axNjTbC1NFH7KtTaD42plxEsjN3kaQoXR9JTEXh3f4+D1h5s/abtO5Jho+twkguwfbbq2V JVybwh98vovc94bsRmsR8i7FvShms4YFjza64X4arEmnBhUfoOYmNHptd4C+kW6yaP5u1k qGTdAUXV52rqi8H5eHKM6Zf5OFWKWqRcSnYFttknbIly7cssur6dhia5C9ATTDoh8WdGzS 0ZirAKQo5HUqthUGP9UhnhJFd53PKCq3jOa2oZ8+Kfy4+0XqUNaeDSdqi9wbUlrLl4FFAj 9WMIeImnWbJJscD/tCcWSSEaH+QAwKmpqefkkp/dvbiwqm2LhpgwCuvuYly+8Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629412787; a=rsa-sha256; cv=none; b=PTTuSRRGGdsZt0O1JWkYqzIigZu+jAjlnpA/xGjEhUYgcZpG6/RM8+vqjpTs3vbOGotUk+ 4MJFJtskbX4lQ/5raNI8YMAdNA2Uq9IfvENfcHF9GvjY201TDf1QN4BcnR8B8q3LNZPYOy NOOJiGBk6ChaMMUTZEYZkUuQcH7pZ0lxCGEnPvIV06j8JXNUcED9NQTLjmlWFCyDPZ0YI5 dQSWpveZfcP1rQWMP64aV2LQW6I8jdixkhbwpDvK1emajwcHeb11MW7yLYNanmGotG2xkY 7j8Vshu39eiIyQ0cgSDi3PkH2vGt+zugGk9V1L58ILsP0UTCAUTbMeR2yHT0tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=MKYUYSW8; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=MKYUYSW8; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: CF75729B5B X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: lzggTgw/GY5o Hello Roland, Em quinta-feira, 19 de agosto de 2021, =C3=A0s 11:57:45 -03, Roland Everaer= t=20 escreveu: > I manage to successfuly copy the needed files to /boot using the `for > each` loop from =E2=80=98%copy-kernel-and-initrd=E2=80=99, Thank You. That=E2=80=99s great! > However, I need to resize (i.e. reduce) the root filesystem so /boot can > live in its own one. Currently, copying the kernel files too /boot is > useless, as HEAD will scan and sign all the files in /, anyway. >=20 > Did you have any article discussing such process? >=20 > I find plenty of articles about increasing the root partition, but, none > to reduce it. >=20 > As the root partition cannot be unmounted online, I need to know if there > is a simple way to "switch to an offline mode of sort". For example, I > could map a minimal root FS in memory and chroot to it. An other > possibility is to copy a guix system to a USB drive and boot from it. >=20 > The USB option seems the easiest, but the one with the RAMFS seems neat. >=20 > What are the recommandations of the fine folks on this ML, for such > operation? I don=E2=80=99t have any resource about how to shrink a partition and its=20 filesystem. I would boot into some distro=E2=80=99s live image and do it fr= om=20 there. Shrinking a partition is dangerous and error-prone because there are two=20 steps: 1. Shrink the filesystem 2. Shrink the partition If you get the size calculation wrong in step 2 you=E2=80=99ll end up cutti= ng off=20 the end of your filesystem and thus corrupt it. So I believe the recommended practice is to always shrink the partition to= =20 be slightly bigger than the filesystem to make sure you don=E2=80=99t take = that=20 risk. You can then optionally grow back the filesystem to fill the slack=20 space (filesystem resizing tools can automatically calculate the correct=20 size to fill the partition). Since this is a risky operation, you have to make sure you have backups of= =20 everything. And since you need to do that, to be honest what I would=20 *really* do is wipe everything out, repartition the disk to the new layout= =20 and then restore from backups... =2D-=20 Thanks, Thiago