Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 14DB22235C5 for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 10:03:58 +0000 (UTC) Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (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 4QTZ4X68g5zDqyB for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 10:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685268236; bh=XTMq//xRibcHr0l6yE6VEBqIZbpj+KnOMh7GHuYNeGo=; h=Subject:From:To:Date:In-Reply-To:References:From; b=XFLVZTURXneKMOAiKYgMooleuCGOvW+AF8+zOqR9FnvNLkhc4Tbt0GFxPnUtwBOQs JaOf0ZI6UEmv9EB+g4YYr+prEQyf+xk5APIEh7zVup/E9p6g35tcWazoNhghCOhWT6 sho0DGVaeNLGvX7aUdxhAsCNgyS5uMT4n40B1X9A= X-Riseup-User-ID: 09C2360D860E760AB788E6BFCEAA06337A068A681175E43DA61853102FEB4C3D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4QTZ4X1n75zJnFh for <~alpine/users@lists.alpinelinux.org>; Sun, 28 May 2023 10:03:56 +0000 (UTC) Message-ID: Subject: Re: Install on single partition and without a bootloader From: Ralf Mardorf To: ~alpine/users@lists.alpinelinux.org Date: Sun, 28 May 2023 12:03:52 +0200 In-Reply-To: References: <3405c3d90ea2b8ab5c6849f1ee17c87338e86348.camel@riseup.net> <0eab7313f6d23bf05d4e73e7db8aad05ac1bf265.camel@riseup.net> <9fdb3d754556ebb18428904b6edc2b5ddf37d6fc.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 On Sun, 2023-05-28 at 11:40 +0300, Konstantin Kulikov wrote: >=20 > nvme/filesystem modules didn't get packed into initramfs. Thank you, nvme was missing. =E2=80=A2 rocketmouse@archlinux ~=20 $ cat /mnt/m1.alpine/etc/mkinitfs/mkinitfs.conf features=3D"ata base ide scsi usb virtio ext4" =E2=80=A2 rocketmouse@archlinux ~=20 $ echo "features=3D\"ata base ext4 ide nvme scsi usb virtio\"" | sudo te= e /mnt/m1.alpine/etc/mkinitfs/mkinitfs.conf=20 [sudo] password for rocketmouse:=20 features=3D"ata base ext4 ide nvme scsi usb virtio" =E2=80=A2 rocketmouse@archlinux ~=20 $ cat /mnt/m1.alpine/etc/mkinitfs/mkinitfs.conf features=3D"ata base ext4 ide nvme scsi usb virtio" > You need to specify command to run in chroot, in case of alpine it's > /bin/sh. =E2=80=A2 root@archlinux /home/rocketmouse=20 # mount -t proc none /mnt/m1.alpine/proc/=20 =E2=80=A2 root@archlinux /home/rocketmouse=20 # mount -o bind /dev /mnt/m1.alpine/dev/ =E2=80=A2 root@archlinux /home/rocketmouse=20 # mount -o bind /sys /mnt/m1.alpine/sys/ =E2=80=A2 root@archlinux /home/rocketmouse=20 # mount -o bind /run /mnt/m1.alpine/run/ =E2=80=A2 root@archlinux /home/rocketmouse=20 # chroot /mnt/m1.alpine/ /bin/sh -i / # mkinitfs -c /etc/mkinitfs/mkinitfs.conf -b / $(ls /lib/modules/) /bin/sh: mkinitfs: not found / # /sbin/mkinitfs -c /etc/mkinitfs/mkinitfs.conf -b / $(ls /lib/modules= /)=20 =3D=3D> initramfs: creating /boot/initramfs-lts /sbin/mkinitfs: line 132: depmod: not found / # exit =E2=80=A2 root@archlinux /home/rocketmouse=20 # /bin/ls -hdltr /mnt/m1.alpine/{,usr/}*bin/depmod=20 lrwxrwxrwx 1 root root 4 Nov 1 2022 /mnt/m1.alpine/usr/sbin/depmod -> = kmod lrwxrwxrwx 1 root root 4 Nov 1 2022 /mnt/m1.alpine/usr/bin/depmod -> k= mod lrwxrwxrwx 1 root root 4 Nov 1 2022 /mnt/m1.alpine/sbin/depmod -> kmod lrwxrwxrwx 1 root root 4 Nov 1 2022 /mnt/m1.alpine/bin/depmod -> kmod =E2=80=A2 root@archlinux /home/rocketmouse=20 # /bin/ls -hdltr /mnt/m1.alpine/{,usr/}*bin/kmod -rwxr-xr-x 1 root root 159K Nov 1 2022 /mnt/m1.alpine/usr/sbin/kmod -rwxr-xr-x 1 root root 159K Nov 1 2022 /mnt/m1.alpine/usr/bin/kmod -rwxr-xr-x 1 root root 159K Nov 1 2022 /mnt/m1.alpine/sbin/kmod -rwxr-xr-x 1 root root 159K Nov 1 2022 /mnt/m1.alpine/bin/kmod Running chroot now returns "chroot: failed to run command =E2=80=98/bin/sh=E2=80=99: No such file or d= irectory" I probably made a mistake, so the easiest thing to do is to reboot, but I can't do it right now, since the machine is busy. I even can't start a terminal at the moment, it results in "Error connecting to dbus: Failed to connect to socket /run/user/1000/bus: Permission denied". Regards, Ralf