Kernel panic when booting with initramfs-tools version 0.120ubuntu1 generated initramfs
Bug #1481733 reported by
Daniel Winzen
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
busybox (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft | ||
initramfs-tools (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft |
Bug Description
After updating initramfs-tools to version 0.120ubuntu1 the kernel stops with a kernel panic during boot.
…
Begin Running /scripts/
Begin Running /scripts/
done.
/init: exec: line 372: switch_root: not found
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
…
For the rest of the backtrace, see the attached image.
Related branches
Changed in busybox (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in initramfs-tools (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | removed: block-proposed blocks-proposed |
To post a comment you must log in.
@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 +--startup- event=recovery} <${rootmnt} /dev/console >${rootmnt} /dev/console 2>&1 +--startup- event=recovery} <${rootmnt} /dev/console >${rootmnt} /dev/console 2>&1
exec switch_root ${rootmnt} ${init} "$@" ${recovery:
elif command -v run-init >/dev/null 2>&1; then
exec run-init ${drop_caps} ${rootmnt} ${init} "$@" ${recovery:
fi