mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(boot): avoid ext3 rootfstype and remount root readonly before kexec
This commit is contained in:
parent
6b8aa73507
commit
d0c97c119e
3 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue