Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 0A6652235AA for <~alpine/users@lists.alpinelinux.org>; Sat, 27 May 2023 13:20:19 +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 4QT2TY3mQXzDr3p for <~alpine/users@lists.alpinelinux.org>; Sat, 27 May 2023 13:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685193617; bh=q/4zu72L9JuhnTVB0Uw30QLvIRVObyVqPo45r8ONitI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=fPJRA6F4KCky84+rKQWvsecxB6M8xlv66H2Vwn2myROCytVTua7wNqq184kch1qyx KTkPuBEFVglQ0wZuXLUdoyvoAiNG4Yk8ltJJHbMI6dtX8xY0qW0GqvwIAuIKPSTyeN kiAqZ38cGOYKRfThVzqOKyF572lpyFix1yxoNTxw= X-Riseup-User-ID: 621FFF977CDD7969772548088BACAF956A9D1FAF587CC33E05353D7D460DF0AE Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4QT2TX6cXwzJnFh for <~alpine/users@lists.alpinelinux.org>; Sat, 27 May 2023 13:20:16 +0000 (UTC) Message-ID: <9fdb3d754556ebb18428904b6edc2b5ddf37d6fc.camel@riseup.net> Subject: Re: Install on single partition and without a bootloader From: Ralf Mardorf To: ~alpine/users@lists.alpinelinux.org Date: Sat, 27 May 2023 15:20:12 +0200 In-Reply-To: <0eab7313f6d23bf05d4e73e7db8aad05ac1bf265.camel@riseup.net> References: <3405c3d90ea2b8ab5c6849f1ee17c87338e86348.camel@riseup.net> <0eab7313f6d23bf05d4e73e7db8aad05ac1bf265.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, I booted the alpine-standard-3.18.0-x86_64.iso to run # BOOTLOADER=3Dnone setup-alpine The last steps were selecting the "sys" install and confirming the erasing of an external USB HDD (instead of using the unallocated space only). setup-alpine generated an empty fat32 partition, a linux-swap and an ext4 partition holding the root directory, including /boot. I used cp -Tai to copy everything from the external USB HDD to an internal NVMe SSD. Then I edited fstab and grub.cfg, first using the labels and then using the UUIDs of the root directory and another linux-swap. If I try to boot it by grub Alpine Linux startup ends with mount: mounting {LABEL,UUID} [...] on /sysroot failed: No such file or dire= ctory Mounting root failed. initramfs emergency recovery shell launched. I wanted to run mkinitfs, but it's not available. Trying to boot it from an Arch Linux session via systemd-nspawn results in # systemd-nspawn -bqD /mnt/m1.alpine=20 =20 OpenRC 0.47.1 is starting up Linux 6.3.4-arch1-1 (x86_64) [SYSTEMD-NS= PAWN] =20 * /proc is already mounted * /run/openrc: creating directory * /run/lock: creating directory * /run/lock: correcting owner * Caching service dependencies ... = = [ ok ] * Loading hardware drivers ... = = [ ok ] * Creating user login records ... = = [ ok ] * Setting hostname ... = = [ ok ] * Setting keymap ... loadkmap: can't open console = = [ !! ] * ERROR: loadkmap failed to start * Loading modules ... = = [ ok ] * Starting networking ... * lo ... = = [ ok ] * eth0 ... ip: ioctl 0x8913 failed: No such device udhcpc: ioctl 0x8933 failed: No such device ifup: failed to change interface eth0 state to 'up' = = [ !! ] * Starting busybox syslog ... = = [ ok ] * Setting keymap ... loadkmap: can't open console = = [ !! ] * ERROR: loadkmap failed to start * Starting busybox acpid ... = = [ ok ] * Starting busybox crond ... = = [ ok ] can't open /dev/tty1: No such file or directory can't open /dev/tty2: No such file or directory can't open /dev/tty3: No such file or directory can't open /dev/tty4: No such file or directory can't open /dev/tty5: No such file or directory can't open /dev/tty6: No such file or directory can't open /dev/tty1: No such file or directory can't open /dev/tty2: No such file or directory [...] I booted again using grub. In the emergency shell I intended to run # apk fix linux-lts Obviously this is not possible in the emergency shell. Now I try to chroot from Arch Linux. =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # mount -t proc none /mnt/m1.alpine/proc/=20 =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # mount -o bind /dev /mnt/m1.alpine/dev/ =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # mount -o bind /sys /mnt/m1.alpine/sys/ =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # mount -o bind /run /mnt/m1.alpine/run/ =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # chroot /mnt/m1.alpine/ chroot: failed to run command =E2=80=98/bin/bash=E2=80=99: No such file = or directory This makes sense. On my iPad iSH's Alpine I explicitly installed bash. =E2=80=A2 root@archlinux /mnt/m1.alpine=20 # /usr/bin/ls -hl /mnt/m1.alpine/bin/*sh* lrwxrwxrwx 1 root root 12 May 27 13:56 /mnt/m1.alpine/bin/ash -> /bin/bu= sybox lrwxrwxrwx 1 root root 12 May 27 13:56 /mnt/m1.alpine/bin/fdflush -> /bi= n/busybox lrwxrwxrwx 1 root root 12 May 27 13:56 /mnt/m1.alpine/bin/sh -> /bin/bus= ybox Regards, Ralf