Received: from pmta11.teksavvy.com (pmta11.teksavvy.com [76.10.157.34]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 9AB4F7810B4 for <~alpine/users@lists.alpinelinux.org>; Thu, 30 Jun 2022 22:19:40 +0000 (UTC) IronPort-SDR: PAGOLoRlxLBTZujiZTmC3418nlS3AuhlRTJze/lz+x61HkMzn2P2wiFvQ5YqfVtAOijeD0pOzm Io03BEdw5CHg== IronPort-PHdr: =?us-ascii?q?A9a23=3A+epvHh/adKz+1P9uWNDoyV9kXcBvk6r5NA4S8?= =?us-ascii?q?YZhl79Naa294YWkN0vatpAPxBeBFc2To7pfk+SDq6n7QiRA+puHvH0YOL10H?= =?us-ascii?q?x4ewZxOwEp5X5/DUxWlaqS7LmQhGdhaElps/nW1K09QTcrwa0XPqHmz5hYNG?= =?us-ascii?q?xHzKQd+Juv8AILfiYK83qip/oHLJQVFgD3oUuojdlPv81WX7Y9P0dpXQps?= =?us-ascii?q?=3D?= IronPort-Data: =?us-ascii?q?A9a23=3A9+hE7q1BKIG1aa5WCfbD5QBzkn2cJEfYwER7X?= =?us-ascii?q?KvMYLTBsI5bpzQBzjQaXWmDP6qMZzCjetAgYd/g9E4PsJPXyNFjGgc4qSg9H?= =?us-ascii?q?nlHgPSeCIXCJC8cHc8ywu4v7a5fAkx3huDodKjYdVeB4Eb3WlTdhSMkj/vQG?= =?us-ascii?q?OGkULWs1h1ZHGeIdg9w0XqPpMZk2uaEsfDha++8kYuaT//3YTdJ6BYuWo4g0?= =?us-ascii?q?J9vnTs01BjEVJP0iXRlDRxDlAe2e3D4l/vzL4npR5fzatE88uJX248vZVxkl?= =?us-ascii?q?1418SvBCvv9+lr6WlIHSL7VJhTIlndVQKG8nAkErSs3uko5HKBELx4K0nPWx?= =?us-ascii?q?JYokYklWZ+YEG/FOoXAlugFThNcEipWIqxC9KPKKniwuNafwkuAeHKEL/BGV?= =?us-ascii?q?RBuZdBGprkqaY1J3blCQNwXVTiVjuauwbS2DfR3i944BM3qJ58E/Hhk1TDfA?= =?us-ascii?q?PInR43TBaLQ6rdw2T4qjcJDB/H2dsMZbj0pZxPFCyCjkH9/5IkWg+qihn7kb?= =?us-ascii?q?3tEpVGOrLQp8i7YywkZ7VQkC/KNEvTieCmfth/Bzo4ew1nEPw=3D=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A0eoXIK9VaiH5lQ3OTexuk+D1I+orL9Y04l?= =?us-ascii?q?Q7vn2ZKSY5TiXqrbHNoB19726NtN9xYgBYpTnkAsO9qBznm6KdjbNhWotKGT?= =?us-ascii?q?OW3ldAT7sC0WKB+VLd8kTFn4Y36Up5ScRD4Z/LfDxHZK3BkWqF+rgbsby6Ge?= =?us-ascii?q?yT5ds3SB1WPHpXgycL1XYCNjqm?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EDAwA+Ib5i/3JJlxRaHAEBAQEBAQc?= =?us-ascii?q?BARIBAQQEAQFAgU+CJIEBgQQHTAKETZENA4QjlhRmgxY8CwEBAQEBAQEBAQk?= =?us-ascii?q?7BwQBAQMBAoR+AoVMJzgTAQIEAQEBEgEBAQUBAQEBAQcEAgKBGIU7BicNgnB?= =?us-ascii?q?BIlYBAQEBAQEBAQEnAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBEgINUiRCAQE?= =?us-ascii?q?BAQIBIw8BDQEBOAQLCxgCAhIBARICAlcGAQwIAQGCeQGCdSMSq216gTGBAYI?= =?us-ascii?q?IAQEGh2YDBoERLIYgYId8CDuCDYEUAScMgnc+hCwJVwIFgweCZZdOgk4mBA8?= =?us-ascii?q?DGi0vEoEgbgEIBgMDBwoFMAYCDBgUBAITElMcAhIFBwobDhQcJBcMDwMSAxE?= =?us-ascii?q?BBwIJEggVKwgDAgMIAwIDKwIDFgkHCgMdCAocEhAUAgQRHgsIAxkeLAkCBA4?= =?us-ascii?q?DQAgLCgMRBAMTGAkWCBAEBgMILw0nCwMFDw0BBgMGAgUFAQMg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AgIbBwICAwIGFQYCAm4uDQgECAQ3JA8FAgcvBQQvAh4EBQYRCAIWAgYEB?= =?us-ascii?q?QIEBBYCEAgCCCcXBxMYGxkBBVkQCSEcCh8KBgUGFgMhbgUKOw8oNDY8LB8bC?= =?us-ascii?q?oEaLCsWAwQEAwIGGgMDIgIQKQYyAxYGLRooARsClnuEPjwnDRdLFAYUGwgII?= =?us-ascii?q?IEQHR0aOwQFklAem0OTCgcDg06LIY1QhxAGEy2WapF6lnMgjRKUVYU8gXiBf?= =?us-ascii?q?4N0AQEyEj8ZD4xmgTqDHlSFFIVmWQc0AgYBCgEBAwmMPw8VgiIBAQ?= X-IronPort-AV: E=Sophos;i="5.92,235,1650945600"; d="scan'208";a="190056475" Received: from webhost.teksavvy.com ([20.151.73.114]) by hsmtp11.teksavvy.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Jun 2022 18:19:35 -0400 Received: from [192.168.3.189] (107-179-206-29.cpe.teksavvy.com [107.179.206.29]) by webhost.teksavvy.com (Postfix) with ESMTPSA id DFD6C32DE6DF; Thu, 30 Jun 2022 18:19:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wildtechgarden.ca; s=default; t=1656627574; bh=5JuOZisV41LrA8yQ/wDXichk3lfjfG3SaZs6lLzUAaQ=; h=Subject:To:From; b=k5KQnAUBVF2deeYuZ+RXUnGPwWdNg3KKP+ILbjE0CtLmPD9Z+F2MLz18AN0/cT49+ OkjaLK6X7nayM9yD1TkDhBkxZzaaa2zCndw2KFBiLcnZ6vifYM+UK3RD4lWRdzJ8Hk qd3un9nNVKHWxanAEtggVe2zfnhXyyVZGeGqhbbc= Authentication-Results: webhost.teksavvy.com; spf=pass (sender IP is 107.179.206.29) smtp.mailfrom=dfdpublic@wildtechgarden.ca smtp.helo=[192.168.3.189] Received-SPF: pass (webhost.teksavvy.com: connection is authenticated) Message-ID: <7cc4b38a-02b9-4584-8920-a7337027bbf9@wildtechgarden.ca> Date: Thu, 30 Jun 2022 18:19:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: sys mode setup for RPI Content-Language: en-CA To: Jerome Marc , ~alpine/users@lists.alpinelinux.org References: From: "Daniel F. Dickinson" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220630221934.6636.23645@webhost.teksavvy.com> X-PPP-Vhost: wildtechgarden.ca Hello Jerome, RPi installation has become much easier with 3.16.0 (or else it simply hasn't been documented how to do this). On 2022-05-31 7:09 a.m., Jerome Marc wrote: > Hi, > > I followed the instructions here > : https://wiki.alpinelinux.org/wiki/Classic_install_or_sys_mode_on_Raspberry_Pi > Instead of that you might want to try: 1. Boot Pi using freshly created SD card 2. Login as root (no password required). 3. Execute something like (see notes): |# Notes: -eL is for encrypted (LUKS) + LVM. You can omit if you don't want those. DISKOPTS="-eL -m sys" setup-alpine | Enter |y| when prompted whether to use the boot media (|/boot/mmcblk0p1|) and to enter |y| again for the prompt on whether to erase an use the the entire disk (|mmcblk0|). This is because you will be erasing the boot media and replacing it with a ‘classic’ OS install. This does mean the process will be interactive at that point, because |setup-alpine| does not currently have a fully automated way to achieve the goal of replacing the boot install with the ‘sys’ mode install. Reboot once the install process complete and you should have a RPi 'sys' mode install of Alpine Linux 3.1.6.0 You might want to consider the following while using `setup-alpine`: I recommend either not creating an admin user when prompted (and creating one after the install) OR using a very simple password for the new user, and updating the password after the install. The reasoning is that with Alpine 3.16.0, which added the new user addition, there is an error in adduser logic such that if you do not correctly enter the password twice (password and confirmation) then you will end up stuck in an error loop you can’t exit except by aborting the install, rebooting, and trying again. In addition, the new user’s home directory does not survive the first reboot. (After firstboot, if you create a user on a system/classic install, this does not occur; the issue has to do with what directories are preserved by the install/diskless system). * Copied from a web page I wrote at https://wildtechgarden.ca/deploy-admin/server-alpine-linux-docs4web/server-install-config/create-sys-aka-classic-install/ * It is my intent to integrate this into the wiki (I have released as CC-BY-SA-4.0 to facilitate that, and the source code is at: https://gitlab.com/danielfdickinson/server-alpine-linux-docs4web if you get impatient to get it any of those docs on the wiki yourself. I hope that helps! Regards, Daniel > I ran setup-disk this way : > > alpine:~# export FORCE_BOOTFS=1 > alpine:~# setup-disk -m sys /mnt > ext4 is not supported. Only supported are: vfat > Continuing at your own risk. > Installing system on /dev/mmcblk0p2: > /sbin/setup-disk: line 469: can't create /mnt/boot/config.txt: > nonexistent directory > /sbin/setup-disk: line 470: can't create /mnt/boot/cmdline.txt: > nonexistent directory > 100% > /boot/initramfs-rpi > You might need fix the MBR to be able to boot > > I'm confused now about the /mnt/boot directory structure. Because > /mnt/boot contains kernel stuff but also the firmware files. > If I move /mnt/boot/* to /media/mmcblk0p1/boot/ firmware files and > overlays will be copied as well > This means that these files will be available twice in the boot > partition (in /media/mmcblk0p1 and /media/mmcblk0p1/boot/) > > The good thing is that firmware and kernel will be managed from apk. > However if apk upgrades the firmware files they won't be used by the > system because they are located in the > /media/mmcblk0p1/boot/ subdirectory/. > Or do I have to change something in config.txt to force the use of the > firmware and overlays files stored in /media/mmcblk0p1/boot/ ? > > Thanks ! > -- https://wildtechgarden.ca Technical and professional website https://princesandmadmen.ca Personal and political blog