mkimage-profiles/features.in/uboot/image-scripts.d/00-uboot-prepare
Anton Midyukov 1c1612e9ec uboot: Add UBOOT_BOOTARGS instead BASE_BOOTARGS
When loading u-boot + extlinux.conf, needs specific arguments that
are not needed when using grub-efi
2020-07-31 01:32:34 +07:00

22 lines
450 B
Bash
Executable File

#!/bin/sh
TTY=
echo $GLOBAL_BASE_BOOTARGS | grep console= ||
TTY='console=tty1'
# installkernel relies on existing extlinux.conf
# with filled in `default' label
mkdir -p /boot/extlinux
cat > /boot/extlinux/extlinux.conf << EOF
menu title ALTLinux Boot Options
default linux
timeout 70
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
fdtdir /boot/dtb
append root=LABEL=ROOT ro $GLOBAL_BASE_BOOTARGS $GLOBAL_UBOOT_BOOTARGS $TTY
EOF