Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 0C55B2235E1 for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 18:09:42 +0000 (UTC) Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4QTmrn2cRrzDqsW for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 18:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685297380; bh=KKeKFqNWFGvx8IEts8N9xOy5Eib6y7c/k2K9pscJdYA=; h=Subject:From:To:Date:In-Reply-To:References:From; b=kKShachq9kqSV3lgohmAy5KAx4dFH3MuNIvbiaS02gYcuXfpc6Dvma/mCq6g9j+jM tzEAOGq6VMK1u7fysd8eMvwJS+yOUxp3sfpGUE/VgyOaD25haSxWPDj++F+BzfeJAH XKvYqpE+ugrbKKxu34F8QesL4N7/BmW2bNYW1tEo= X-Riseup-User-ID: AFDD1E8FCA8E6455EA3F236A908F29DCC9173E2DBFA94C259192EC2712504962 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4QTmrm5FNFzFqjT for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 18:09:28 +0000 (UTC) Message-ID: <83435b7879b0fd1bfbdb4d7f2737c5ad8aeead7d.camel@riseup.net> Subject: Re: Install on single partition and without a bootloader From: Ralf Mardorf To: ~alpine/users@lists.alpinelinux.org Date: Sun, 28 May 2023 20:09:26 +0200 In-Reply-To: <7950a075f5329960548a2c8706df8bf3bda254a8.camel@riseup.net> References: <3405c3d90ea2b8ab5c6849f1ee17c87338e86348.camel@riseup.net> <0eab7313f6d23bf05d4e73e7db8aad05ac1bf265.camel@riseup.net> <9fdb3d754556ebb18428904b6edc2b5ddf37d6fc.camel@riseup.net> <7950a075f5329960548a2c8706df8bf3bda254a8.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, by accident I first run =E2=80=A2 root@archlinux /home/rocketmouse=20 # apk add --root /mnt/m1.alpine/ fix linux-lts=20 fetch http://mirror.bahnhof.net/pub/alpinelinux/v3.18/main/x86_64/APKIND= EX.tar.gz fetch http://mirror.bahnhof.net/pub/alpinelinux/edge/main/x86_64/APKINDE= X.tar.gz ERROR: unable to select packages: fix (no such package): required by: world[fix] then I run =E2=80=A2 root@archlinux /home/rocketmouse=20 # apk fix --root /mnt/m1.alpine/ linux-lts=20 (1/1) [APK unavailable, skipped] Reinstalling linux-lts (6.1.30-r0) OK: 452 MiB in 54 packages If I try to boot Alpine Linux now nothing does happen at all. Neither a grub error message, nor any startup message is shown. =E2=80=A2 root@archlinux /home/rocketmouse=20 # /bin/ls -l /mnt/m1.alpine/etc/mkinitfs/mkinitfs.conf /mnt/m1.alpine/bo= ot/initramfs-lts=20 -rw------- 1 root root 16946027 May 28 11:40 /mnt/m1.alpine/boot/initram= fs-lts -rw-r--r-- 1 root root 50 May 28 11:16 /mnt/m1.alpine/etc/mkinitfs= /mkinitfs.conf The timestamp shows that apk fix didn't rebuild initramfs, the timestamp is from the build of initramfs-lts that failed, when I run /sbin/mkinitfs in the chroot and depmod wasn't found. =E2=80=A2 root@archlinux /home/rocketmouse=20 # mv -i /mnt/m1.alpine/boot/initramfs-lts /mnt/m1.alpine/boot/broken_ini= tramfs-lts =E2=80=A2 root@archlinux /home/rocketmouse=20 # /bin/ls -l /mnt/m1.alpine/boot/*nitramfs-lts=20 -rw------- 1 root root 16946027 May 28 11:40 /mnt/m1.alpine/boot/broken_= initramfs-lts =E2=80=A2 root@archlinux /home/rocketmouse=20 # apk fix --root /mnt/m1.alpine/ linux-lts=20 (1/1) [APK unavailable, skipped] Reinstalling linux-lts (6.1.30-r0) OK: 452 MiB in 54 packages =E2=80=A2 root@archlinux /home/rocketmouse=20 # /bin/ls -l /mnt/m1.alpine/boot/*nitramfs-lts=20 -rw------- 1 root root 16946027 May 28 11:40 /mnt/m1.alpine/boot/broken_= initramfs-lts Have I damaged something by accidentally running apk add --root /mnt/m1.alpine/ fix linux-lts ? And/or is "APK unavailable" the culprit? Or else? FWIW =E2=80=A2 root@archlinux /home/rocketmouse=20 # pacman -Qi apk-tools | head Name : apk-tools Version : 2.12.11-1 Description : Alpine Package Keeper - package manager for alpine Architecture : x86_64 URL : https://gitlab.alpinelinux.org/alpine/apk-tools Licenses : GPL2 Groups : None Provides : None Depends On : zlib openssl Optional Deps : None Regards, Ralf