From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 07:12:29 2025 Received: (at submit) by debbugs.gnu.org; 27 Jan 2025 12:12:29 +0000 Received: from localhost ([127.0.0.1]:59701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcNyf-0001YG-Dl for submit@debbugs.gnu.org; Mon, 27 Jan 2025 07:12:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55982) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tcNyc-0001Xw-Fq for submit@debbugs.gnu.org; Mon, 27 Jan 2025 07:12:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tcNyQ-0007Gv-OZ for bug-guix@gnu.org; Mon, 27 Jan 2025 07:12:14 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tcNyO-0000sQ-O7 for bug-guix@gnu.org; Mon, 27 Jan 2025 07:12:14 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 5E8C4312FC5; Mon, 27 Jan 2025 12:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1737979928; bh=oEJTUkCi8Yn8gkoG80fizBADGcYLWx7xJnGo0kgQooI=; h=From:To:Subject:Date; b=tFrs3oKSXgty5w71adnQ4ceRde1bmBkQq9Cs7J7UakCPygvt5Hxm519zdhBSwOTiw T7BcGNSnlI6+QmPMe5hIk08MAD+2h5GBxoXIsf8cRXqazvfUQL5cB6bvYvsCaQRVX4 WxyzR1MD4mRqVFK8H7yhM/CsX/VHWVIwi678Y0Fcp5URftibt4vrfJvAoZSz/fvV3u amlvtqBi5KVvYA6yDnEU51rse3Mwav1h5I7dtB4nCi17i8Jiey7U7w1Y1lYdGrQezx sOMkpCfu88/TEL8HJXIYiPWwfbNZWOrnjxmVIjR3wUAJM5ThCua/U1X8/ga40rNPdb B4Jz6HESeT0NHiRBhjmvC3Lf0s1QsmI86OjbWCmo1KhmcFU0Oevpxp8KLdPOJHwG6o 0V3trd939UYSoEeEEdHqMEE/6A2VTKIFA3V5uKKDk4TKFPUdpVfu3SYPlsqnqIFdF8 Gwtb39OVmjBCKejduCLTPZ+p108sKz2EQ5NyXjqz09mz3S8xnt+NRBhcF3PwpGRlJR A3zae29GXXOL7NA1HEY8NI/Ncw0eVNx4ycEwpawANUzg6vGu77uyCvpNRw7MILqcRD kUQPCpb3kKD17aBC//J03nesCsVAPbXjcEvD9AYFs/YCqQVZvdPuqyt8nE2DWHLVs7 CWw5qz7q9DMTzvHiQQ5k6pxc= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id E44ED312FC4 for ; Mon, 27 Jan 2025 12:12:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1737979927; bh=oEJTUkCi8Yn8gkoG80fizBADGcYLWx7xJnGo0kgQooI=; h=From:To:Subject:Date; b=MdqRt/3b1StIQ6HFfAeJkEWGcbjFVhnbfzg6c1wB+g+j7yK3Rz1y2KiPHJsE5UZJH wv1aMS56nJn3LmqbmCkRx8hL8/uY7bQc4YEYMqU19/nr9HnmnK26LP+NCwCuLEGf0k G4ppL9wXf1F/zlyLoxW/Z4IbFdDkLdBsMNc/M3EgPpuMb0HTmo+TRlDI5xvBb6NXjo FfdfeETNLD02oyn5Z158lQH0DYs+DMdm1xrt+SMiVR3KWsmnRwWqc7a6b8IXBzggyZ 8D80isjLSqbzyMuQ1ZrPwaAEu8RiFIj894cx4jufriw3eDdxfs1LfkwBQjIH7VTVYD ZWLh3FNUnEIr9r4KnzeuH0i20vxRKkCY5lNwrwh/pECPW45pSbN/kvD5d1BYbc0MIW uMnFAwh91L3E2o+ljuSJ1D3rifqBn8+N7W0dPbJ+eqI0kO9avhPpHQnhTrsC9NhJil 4Unj2oZdhJPviEhF7TW2Zlh6yF5uVk6WLqhqHuCPeU1IfFSXq9TCYn9o9HRf1dN0cr kd4vZbnJbxMQTmBmUagk3i7/tVDwW9HFFpfr0ck2ygL5phG8hUVnzhrPzPP/bs+UdC h4gG6Y2Sabp6xfHlZJ8qcMOjb1SqF085vO1pxFpj+ZAyfa+PVJ+KKu2EDwNc4vOhPt 8ajpjF+5blgtx85G+gRFOXyU= From: Tomas Volf <~@wolfsden.cz> To: bug-guix@gnu.org Subject: GRUB configurations generated by deploy and delete-generations differ, interfering with boot process Date: Mon, 27 Jan 2025 13:12:06 +0100 Message-ID: <878qqwihgp.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable For some reason the generated configuration by `guix system deploy' differs from the one generated by `guix system delete-generations'. The one from `delete-generations' is missing the extra-initrd, interfering with the boot of the system. From=20`guix deploy': =2D-8<---------------cut here---------------start------------->8--- menuentry "GNU with Linux 6.12.11" { [..] initrd /disk/key.cpio /gnu/store/id8k7j24c4ijxiw1pgfsp0pg2ws52wkd-combine= d-initrd/initrd.img } =2D-8<---------------cut here---------------end--------------->8--- From=20`guix system delete-generations': =2D-8<---------------cut here---------------start------------->8--- menuentry "GNU with Linux 6.12.11 (#42, 2025-01-27 11:54)" { [..] initrd /gnu/store/id8k7j24c4ijxiw1pgfsp0pg2ws52wkd-combined-initrd/initr= d.img } =2D-8<---------------cut here---------------end--------------->8--- Ignoring that the menuentries are differently named (which is bit weird, but does not really matter), notice that the `initrd' lines differ. Reproduction is simple: 0. Configure system with bootloader with extra-initrd configured. 1. Run `guix deploy' few times. 2. Look at first menuentry in /boot/grub/grub.cfg. 3. Run `guix system delete-generation $OLDEST'. 4. Compare first menuentry in /boot/grub/grub.cfg to step 2. --> Notice the differences (name, initrd, ...). 5. Run `guix deploy' once more. --> Notice it got fixed again. Workaround is to always run `guix deploy' once more after deleting generations, even if there is nothing to deploy. It will still regenerate the grub.cfg, fixing things up. But it would be great if it "just worked". Have a nice day, Tomas =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmeXeBYOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wamBdg/+JFC6tpHjumJhYRYdwWK0d/2nd4kws9rjUNpX jKm10JqpCyaXduiVRsRKpHzIRFoWeOyU9VB/zNp7t83mV/te6gssmMzXD7EYTvbr YygK/lADrt8L3V0yqJWAkAetSpBplefmiU5k1TlH6v3mBt63lWPyUayoA+f6aj5B Vv2UXBW+JNH/iQmyq6VlHr0+w9ph+tD5I+J4vBTnCM2jkEhjcSFVEBXyatXgoIBG Xea92aqpkTvMylfhqXbK+FnbdX5AShv8yK73uPGSUHfCWDSmgKhjoX/FiiFOr5C+ MbFsJwtDwCkr1MQaQgR4SwILCIoh55qRvam1veGU/kloZy4XJEWA/cDX0tMpsBmK LZJn35VrwaG3d+/Rl+pV4tUOeZW5iVn8xGxu8Qi4mC3uLd1v9w1GfSBRcoP3ptr+ 9m6cvrWEpE8zC8PV+AvzCDZb21Px7bZbUpaW3J07Xbbqv+MbZj8FXDyFvUGmfIVk HdYBAsouUzEV9o6iiinOLRAvbOWQydUYPS0lQs8g1lH/mvsGuzWOTVw/uH0eLP3G k6RXFijLeKP4/lBundP8CUenUgLagZbkXqB9VBtnZcB0Lg9r6PUVP2q1e46nJK9d pWW0grdwcZISWkscS6GnT0ndBZ53XTNmBFzA+sg49du4gSUrASyogO1YVEAUkuI4 9xgm1DU= =QBJC -----END PGP SIGNATURE----- --=-=-=--