mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-05 02:45:23 +01:00
Don't use serial console with bare metal option and user provided kernel
This commit is contained in:
parent
c61b4afd8a
commit
5b9fd08dc0
1 changed files with 9 additions and 3 deletions
12
sysa/run2.sh
12
sysa/run2.sh
|
|
@ -33,9 +33,15 @@ go_sysb() {
|
|||
mount -t proc proc /proc
|
||||
# kexec time
|
||||
echo "Loading kernel + sysb initramfs using kexec"
|
||||
kexec -l "/boot/linux-4.9.10" --console-serial \
|
||||
--initrd="/boot/initramfs-sysb.cpio.gz" \
|
||||
--append="init=/init console=ttyS0"
|
||||
if [ "${BARE_METAL}" = True ]; then
|
||||
kexec -l "/boot/linux-4.9.10" \
|
||||
--initrd="/boot/initramfs-sysb.cpio.gz" \
|
||||
--append="init=/init"
|
||||
else
|
||||
kexec -l "/boot/linux-4.9.10" --console-serial \
|
||||
--initrd="/boot/initramfs-sysb.cpio.gz" \
|
||||
--append="init=/init console=ttyS0"
|
||||
fi
|
||||
echo "kexecing into sysb"
|
||||
kexec -e
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue