fix(boot): avoid ext3 rootfstype and remount root readonly before kexec

This commit is contained in:
vxtls 2026-03-09 09:09:35 -04:00
parent 6b8aa73507
commit d0c97c119e
3 changed files with 10 additions and 4 deletions

View file

@ -23,10 +23,13 @@ else
# kexec time
if [ "${BARE_METAL}" = True ]; then
kexec -l "/boot/vmlinuz" \
--append="root=/dev/sda1 rootfstype=ext3 init=/init rw rootwait"
--append="root=/dev/sda1 init=/init rw rootwait"
else
kexec -l "/boot/vmlinuz" --console-serial \
--append="console=ttyS0 root=/dev/sda1 rootfstype=ext3 init=/init rw rootwait"
--append="console=ttyS0 root=/dev/sda1 init=/init rw rootwait"
fi
sync
echo u > /proc/sysrq-trigger || true
mount -o remount,ro / || true
kexec -e
fi