Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 90F3B22039D for <~alpine/users@lists.alpinelinux.org>; Tue, 30 May 2023 11:24:59 +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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4QVqn60Psgz9tJ3; Tue, 30 May 2023 11:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685445898; bh=rqSyi4YMGWtzyF16Z1eECSWYKsglBWzU8BmdGcu+bSE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=kWynq9QwpKhxy4U4R+rwO/TgPayOYdIAa/Rsf7ArswUJTVafoxi/60wpMQPuypD/z 8M1DLUSuwNLUJe51q4lP3Ly5QMeWn5OMXM3Wf6fJJ8l6tNoY3p+BVHQNXdRZAaP9d3 m4ZU9iuPRNSJGm4/XINTEdCBOJFb9hjp9O/iVQ8M= X-Riseup-User-ID: A5B4673D67A767659E023AFAD4E085FB208373EEE01CA8DEBD3FD8EA2F13C502 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4QVqn51fMczJp25; Tue, 30 May 2023 11:24:57 +0000 (UTC) Message-ID: <8610b467593bd1fe5b7335242d83ce39640adc41.camel@riseup.net> Subject: Booting Alpine by systemd-nspawn fails - Was: Install on single partition and without a bootloader From: Ralf Mardorf To: Konstantin Kulikov Cc: ~alpine/users@lists.alpinelinux.org Date: Tue, 30 May 2023 13:24:55 +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 > > =C2=A0=C2=A0=C2=A0can't open /dev/tty1: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty2: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty3: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty4: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty5: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty6: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty1: No such file or directory > > =C2=A0=C2=A0=C2=A0can't open /dev/tty2: No such file or directory > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[...] >=20 > Looks like system starts, but init can't find console to spawn > login(1) on. > I'm not familiar with systemd, but reading its manpage i think it sets > up /dev/console. > Try replacing tty1 with console in /etc/inittab Hi, I don't understand what I need to do. This doesn't work: =E2=80=A2 rocketmouse@archlinux ~=20 $ diff /mnt/m1.alpine/etc/inittab /mnt/m1.alpine/etc/inittab_no_console= =20 8c8 < tty1::respawn:/sbin/getty 38400 console --- > tty1::respawn:/sbin/getty 38400 tty1 An Internet search returned: # /etc/inittab =20 ::sysinit:/etc/rc.d/startup =20 tty1::respawn:/sbin/getty 38400 tty1 tty2::respawn:/sbin/getty 38400 tty2 tty3::respawn:/sbin/getty 38400 tty3 tty4::respawn:/sbin/getty 38400 tty4 tty5::respawn:/sbin/getty 38400 tty5 tty6::respawn:/sbin/getty 38400 tty6 =20 # Put a getty on the serial line (for a terminal). Uncomment this line = if # you're using a serial console on ttyS0, or uncomment and adjust it if = using a # serial console on a different serial port. #::respawn:/sbin/getty -L ttyS0 115200 vt100 =20 ::shutdown:/etc/rc.d/shutdown ::ctrlaltdel:/sbin/reboot [ http://clfs.org/view/clfs-embedded-0.0.1/mips/bootscripts/inittab.html ] Oops, I missed that Alpine's inittab contains a similar line, too, but uncommenting it doesn't help. =E2=80=A2 rocketmouse@archlinux ~=20 $ diff /mnt/m1.alpine/etc/inittab /mnt/m1.alpine/etc/inittab_no_console= =20 16c16 < ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 --- > #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 So I use the default inittab again and systemd-nspawn still fails. Regards, Ralf