AnsweredAssumed Answered

switch_root from initramfs is failing

Question asked by Paolo Gentili on May 29, 2020
Latest reply on Jun 3, 2020 by igorpadykov

Hi everyone,

we're trying to implement an initramfs with the intent of:

  • Open a LUKS partition (using a key saved on TPM)
  • Mounting the partition RO
  • Mounting an OverlayFS
  • switch_root to the new system


The first part of the script seems to work fine. Our problem is in the "switch_root" part which ends in a kernel panic.


Please note that we have the same problem also without the encryption/overlay part. The problem seems strictly related to the switch_root.


We are using Yocto Sumo and the initramfs image is bundled with the kernel.


Please find attached the kernel panic log.


Paolo Gentili