Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 8F452225BB0 for <~alpine/users@lists.alpinelinux.org>; Mon, 4 Dec 2023 18:18:40 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id C8EC160003 for <~alpine/users@lists.alpinelinux.org>; Mon, 4 Dec 2023 18:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blueselene.com; s=gm1; t=1701713917; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=jZubRaEFuwRWXVuW8Kokeu1toXahUEJrtCEU8EI4c6M=; b=JBfNm+1145HAanH458h9RUhcWj2ECfXVPgANm42H/zv5MZRQ04cWj4W84Wi6/VL7u9rjz2 oc97CbSBht3pToactpOLSZ3UZKpnqpYx054xfgqRhQQeW6podT1TMOjxfz3/D+xOuvPcUa gCkJmSnaaRxGjGSp7HK/1KelIBP2SB5mWqSY9iKAWYJ47flSitI84N9lPeXJM9iMMIln8P BTQ/UTpjEG3zoTwBaFk8FLSDoQKQ5WejeSIYDLnO1y4QLKeKqz/lri7jInyh1lOg7QkUyh I822sQ26NYPkEGBDHPE/DzPFlrrf4iiYQ0jyky/HhW/IcX7o7rJtKylP1gQGbQ== Date: Mon, 4 Dec 2023 19:17:29 +0100 From: Alex To: ~alpine/users@lists.alpinelinux.org Subject: fix broken initramfs-lts Message-ID: <20231204191729.6aba369c@blueselene.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/oK/g6t2tZPhSg4bBrFL+BDB"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-GND-Sasl: alex@blueselene.com --Sig_/oK/g6t2tZPhSg4bBrFL+BDB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Heads up for those using Alpine Linux Edge, upgraded and were greeted by a broken initramfs-lts after a linux-lts upgrade. I did the usual apk update and apk upgrade dance, and was surprised by apk telling me that mkinitfs failed ("your system may not boot!"). Decided to ignore and reboot anyway. My initramfs-lts was broken after this, which I was able to regenerate with systemrescuecd thanks to https://wiki.alpinelinux.org/wiki/Initramfs_init. Process was: 1. Boot systemrescuecd on broken computer. 2. mount hard drives 3. chroot to ext4 partition 4. run the command at the wiki 5. copy the new initramfs-lts to boot partition 6. profit After this, I had once again a working computer, I just ran apk fix to clear the mkinitfs error and life was good again.=20 Moral of the story is, don't ignore apk errors (my bad), maybe try apk fix before restarting if you see one, and remember to have a backup linux install on external media in case you inevitably mess up. --=20 Current PGP KeyID: 0AFB427F1800FD89751C4035292228735AE707FF https://blueselene.com/pgp-archive/0AFB427F1800FD89751C4035292228735AE707FF= /key.pub --Sig_/oK/g6t2tZPhSg4bBrFL+BDB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQK+0J/GAD9iXUcQDUpIihzWucH/wUCZW4XugAKCRApIihzWucH /znyAP9Cw9lKjO5b8i2ReLaP0FZi5p7Qf4/s/kpqOrFm1JWSiAEAmvgdDLSDyKQZ rbOldfEMcHPNEylkyerWWJvHbkdOwAM= =xnm3 -----END PGP SIGNATURE----- --Sig_/oK/g6t2tZPhSg4bBrFL+BDB--