Comment 3 for bug 1481733

Andy Whitcroft (apw) wrote :

@Daniel -- could you attach the broken initramfs from /boot please.

This seems very odd to my eye as we should only use switch_root if we have found switch_root present as a command on the previous line in /init.

  if [ -z "$drop_caps" ] && command -v switch_root >/dev/null 2>&1; then
        exec switch_root ${rootmnt} ${init} "$@" ${recovery:+--startup-event=recovery} <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1
  elif command -v run-init >/dev/null 2>&1; then
        exec run-init ${drop_caps} ${rootmnt} ${init} "$@" ${recovery:+--startup-event=recovery} <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1