mkimage-profiles/features.in/uboot/image-scripts.d/00-uboot-prepare
2020-07-02 01:01:29 +07:00

24 lines
458 B
Bash
Executable File

#!/bin/sh
if [ -n "$GLOBAL_TTY_RATE" ] ;then
TTY="$GLOBAL_TTY_DEV","$GLOBAL_TTY_RATE"
else
TTY="$GLOBAL_TTY_DEV"
fi
# 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 cma=192M console=$TTY
EOF