#!/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 $TTY EOF