runborg / vyos-pi-builder

71 stars 22 forks source link

Unable to find a medium containing a live file system #28

Open oedm opened 12 months ago

oedm commented 12 months ago

Hi there, I've tried to create an Vyos ISO (current with 6.1.51 kernel) and the rpi images based on that ISO file thanks to your instructions. Sadly the Image will not boot post initrd (see screenshot below). The Squashfs seems to be there, so I would appreciate any kind of advice or tip how to debug this issue.

Thanks a lot! Marcel

Screenshot:

screenshot

Filesystem

bookworm:/home/moed/vyos-pi-builder# fdisk -l vyos-bcm2711-rpi-4-b.img
Disk vyos-bcm2711-rpi-4-b.img: 1.8 GiB, 1932735488 bytes, 3774874 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67ec2bae

Device                    Boot  Start     End Sectors  Size Id Type
vyos-bcm2711-rpi-4-b.img1 *      8192  116735  108544   53M  e W95 FAT16 (LBA)
vyos-bcm2711-rpi-4-b.img2      116736 3710975 3594240  1.7G 83 Linux
bookworm:/home/moed/vyos-pi-builder# mount -o offset=59768832 vyos-bcm2711-rpi-4-b.img /mnt/
bookworm:/home/moed/vyos-pi-builder# ls -lah /mnt/
total 36K
drwxr-xr-x  5 root root 4.0K Sep  6 14:02 .
drwxr-xr-x 18 root root 4.0K Aug  7 15:35 ..
drwxr-xr-x  5 root root 4.0K Sep  6 14:02 boot
drwxr-xr-x  2 root root 4.0K Sep  6 14:02 iso
drwx------  2 root root  16K Sep  6 14:02 lost+found
-rw-r--r--  1 root root    8 Sep  6 14:02 persistence.conf
bookworm:/home/moed/vyos-pi-builder# ls -lah /mnt/boot/
total 20K
drwxr-xr-x 5 root root 4.0K Sep  6 14:02 .
drwxr-xr-x 5 root root 4.0K Sep  6 14:02 ..
drwxr-xr-x 2 root root 4.0K Sep  6 14:02 efi
drwxr-xr-x 2 root root 4.0K Sep  6 14:02 grub
drwxr-xr-x 4 root root 4.0K Sep  6 14:02 image
bookworm:/home/moed/vyos-pi-builder# ls -lah /mnt/boot/image/
total 336M
drwxr-xr-x 4 root root 4.0K Sep  6 14:02 .
drwxr-xr-x 5 root root 4.0K Sep  6 14:02 ..
drwxr-xr-x 5 root root 4.0K Sep  6 14:02 grub
-r--r--r-- 1 root root 316M Sep  6 14:02 image.squashfs
-r--r--r-- 1 root root  11M Sep  6 14:02 initrd.img
drwxr-xr-x 2 root root 4.0K Sep  6 14:02 rw
-r--r--r-- 1 root root 9.1M Sep  6 14:02 vmlinuz
bookworm:/home/moed/vyos-pi-builder# cat /mnt/boot/grub/grub.cfg
set default=1
set timeout=5

echo -n Press ESC to enter the Grub menu...
if sleep --verbose --interuptable 5 ; then
    terminal_input console virtual
fi

menuentry "VyOS  (Serial console)" {
        linux /boot/image/vmlinuz boot=live vyos-union=/boot/image console=ttyAMA0,115200n8 earlycon=pl011,0xfe201000 noautologin
        initrd /boot/image/initrd.img
}
menuentry "VyOS  (Graphical console)" {
        linux /boot/image/vmlinuz boot=live vyos-union=/boot/image noautologin
        initrd /boot/image/initrd.img
}

menuentry "Lost password change  (Serial console)" {
        linux /boot/image/vmlinuz boot=live vyos-union=/boot/image console=ttyAMA0,115200n8 init=/opt/vyatta/sbin/standalone_root_pw_reset
        initrd /boot/image/initrd.img
}

Logs files:

llima3000 commented 8 months ago

I'm having the same issue here, and in my case I also noticed it is not finding the usb keyboard too

AlbrechtL commented 7 months ago

I also have the same issue. Mounting of root is not working and USB keyboard is not working. I just tried it today.

gusbourg commented 7 months ago

Same issue on both rpi4 and cm4.

gwurb commented 2 months ago

Same issue.

Starts with: Mounting root file system …

Then error messages start: cat: can’t open ‘/sys/block/*/removable’: No such file or directory

Finally ends with: (initramfs) Unable to find a medium containing a live file system