Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 359EC225A35 for <~alpine/users@lists.alpinelinux.org>; Thu, 11 Jan 2024 10:56:43 +0000 (UTC) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d4ab4e65aeso39820785ad.0 for <~alpine/users@lists.alpinelinux.org>; Thu, 11 Jan 2024 02:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704970600; x=1705575400; darn=lists.alpinelinux.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6MAcAZ8hmcj29S79AtiTBm4dWS3/EbaSbv9s6AxApQ4=; b=X+65KWMOmUtTU8awh/M+WkLRWhvJGgRqlUq7ixF8bOW2qQ28nogo2yKSC3hYEfB6Lt jmz2Y/JtwFhtQMs9nDG2QH7S7CFDaZ3PncGtmyRqAuuRsemMTCqMrkpEGUmXjQ83cxoJ rJYhUbBcajnAYOIiitzpkBal9pYapqQngzHoKHb10m3ykdYvAQOg92BpSb8CIFfMqIAe eab0uioZjJvqXPCl4z3U70GiOpFPDXgGkzYST8WC+fIrh831NZ0m7dxA/qu+3VKncK9x OmviHui9POCBRO9K8SmfvEZUIvY4YdbfjfIb79jqkAuoPpMzyWJoVFgDEE/hVEVOFmG0 7gCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970600; x=1705575400; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6MAcAZ8hmcj29S79AtiTBm4dWS3/EbaSbv9s6AxApQ4=; b=hEUEfm33Dg8lpDPdyDwEhwCyObBKnW6WGUYgwtrFGWEBmkcxS5RHthms3GsV6nCk69 jkaUIV60tlwyKrlDFh3JiWFvPmJ5i70GTJhL2B7F2tWPhAMd1tNEeumDAG1X2GabOLFG H9gJo5imcRD7M3cvzp+6483hki7DQrKdzHn7qswpzcsPq10+x7PbBhb8WaVcygX4eMF/ Qvh/f4VJt/12vMXEKVODP8mQVsf3ezorEHoLmpSOpouVFVxImK+QmkTzrzGXS0oKMLwf mHEXOUPxoZFsJQW0XfTTZYncvxvXrBe8wsnLUqT1fRU5H/7ra3/U18OHbZuRfBjVTQrk UJ5g== X-Gm-Message-State: AOJu0YyXrtAsjmjXjtxFjXagMi6u68Fy1LcN7fvfJLblQPjVY+cyM6Mb PFeG4EEd3y+BCynXFP9rfsEas9KiBcTQhNktDFFSbDt9mWo= X-Google-Smtp-Source: AGHT+IGbCQmVNR37DyAUMjkZXUzFJFE8aUWbPo4btx3Rwco8YoRp4PEnHpQ4YQWhiLo1Co4/GDvMSBSUVzNoKeH+ims= X-Received: by 2002:a17:90a:ac14:b0:28d:950f:f1ca with SMTP id o20-20020a17090aac1400b0028d950ff1camr869001pjq.2.1704970600159; Thu, 11 Jan 2024 02:56:40 -0800 (PST) MIME-Version: 1.0 From: Ouziel Slama Date: Thu, 11 Jan 2024 11:56:03 +0100 Message-ID: Subject: "mounting /dev/vg0/root on /sysroot failed" on RPI4 To: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000f99cda060ea966c3" --000000000000f99cda060ea966c3 Content-Type: text/plain; charset="UTF-8" "mounting /dev/vg0/root on /sysroot failed" on RPI4 Hi everyone, I'm trying to install Alpine on an RPI4 with LVM and LUKS. I have already done it several times without problem but this time I got this error: "mount: mounting /dev/vg0/root on /sysroot failed: No such file or directory and the emergency recovery shell is launched. I manage to continue the boot by manually mounting the partition and it starts as it should: ``` nlplug-findfs: crypt_load(/dev/mmcblk0) mount: mounting /dev/vg0/root on /sysroot failed: No such file or directory Mounting root failed. initramfs emergency recovery shell launched. Type 'exit' to continue boot sh: can't access tty; job control turned off ~ # ~ # cryptsetup luksOpen /dev/mmcblk0p1 lvmcrypt --key-file=/crypto_keyfile.bin ~ # lvm vgchange -ay vg0 3 logical volume(s) in volume group "vg0" now active ~ # mount /dev/vg0/root /sysroot ~ # exit ``` Once the system is started, I check that the modules are loaded, that the cmdline.txt is ok and I rebuild the initial RAM disk: ``` $ cat /etc/mkinitfs/mkinitfs.conf features="base mmc usb ext4 mmc vfat nvme vmd lvm cryptsetup cryptkey" $ $ cat /boot/cmdline.txt modules=loop,squashfs,sd-mod,usb-storage,vfat,ext4,nvme,vmd,kms,lvm,cryptsetup,cryptkey quiet console=tty1 rootfstype=ext4 slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on vsyscall=none debugfs=off oops=panic module.sig_enforce=1 lockdown=confidentiality mce=0 loglevel=0 root=/dev/vg0/root cryptroot=/dev/mmcblk0 cryptkey=yes cryptdm=lvmcrypt $ $ ls /crypto_keyfile.bin /crypto_keyfile.bin $ sudo mkinitfs -c /etc/mkinitfs/mkinitfs.conf -b / 6.6.4-0-rpi ==> initramfs: creating /boot/initramfs-6.6.4-0-rpi $ sudo reboot ``` But that doesn't change anything and I fall back again into the emergency shell. Usually it works well and I can't find the difference in this case.. any idea? Thanks in advance for the help. --000000000000f99cda060ea966c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"mounting /dev/vg0/root on /sysroot failed" on R= PI4

Hi everyone,

I'm trying to install Alpine on an RPI4 = with LVM and LUKS. I have already done it several times without problem but= this time I got this error: "mount: mounting /dev/vg0/root on /sysroo= t failed: No such file or directory and the emergency recovery shell is lau= nched. I manage to continue the boot by manually mounting the partition and= it starts as it should:

```
nlplug-findfs: crypt_load(/dev/mmcbl= k0)
mount: mounting /dev/vg0/root on /sysroot failed: No such file or di= rectory
Mounting root failed.
initramfs emergency recovery shell laun= ched. Type 'exit' to continue boot
sh: can't access tty; job= control turned off
~ #
~ # cryptsetup luksOpen /dev/mmcblk0p1 lvmcry= pt --key-file=3D/crypto_keyfile.bin
~ # lvm vgchange -ay vg0
3 logica= l volume(s) in volume group "vg0" now active
~ # mount /dev/vg= 0/root /sysroot
~ # exit
```

Once the system is started, I che= ck that the modules are loaded, that the cmdline.txt is ok and I rebuild th= e initial RAM disk:

```
$ cat /etc/mkinitfs/mkinitfs.conf
feat= ures=3D"base mmc usb ext4 mmc vfat nvme vmd lvm cryptsetup cryptkey&qu= ot;
$
$ cat /boot/cmdline.txt
modules=3Dloop,squashfs,sd-mod,usb-s= torage,vfat,ext4,nvme,vmd,kms,lvm,cryptsetup,cryptkey quiet console=3Dtty1 = rootfstype=3Dext4 slab_nomerge init_on_alloc=3D1 init_on_free=3D1 page_allo= c.shuffle=3D1 pti=3Don vsyscall=3Dnone debugfs=3Doff oops=3Dpanic module.si= g_enforce=3D1 lockdown=3Dconfidentiality mce=3D0 loglevel=3D0 root=3D/dev/v= g0/root cryptroot=3D/dev/mmcblk0 cryptkey=3Dyes cryptdm=3Dlvmcrypt
$
= $ ls /crypto_keyfile.bin
/crypto_keyfile.bin
$ sudo mkinitfs -c /etc/= mkinitfs/mkinitfs.conf -b / 6.6.4-0-rpi
=3D=3D> initramfs: creating /= boot/initramfs-6.6.4-0-rpi
$ sudo reboot
```

But that doesn= 9;t change anything and I fall back again into the emergency shell.
Usua= lly it works well and I can't find the difference in this case.. any id= ea?

Thanks in advance for the help.
--000000000000f99cda060ea966c3--