mkimage-profiles/features.in/uboot/image-scripts.d/00-uboot-prepare
2019-06-04 18:25:36 +03:00

20 lines
400 B
Bash
Executable File

#!/bin/sh
[ "$GLOBAL_BASE_BOOTLOADER" = 'uboot' ] || exit 0
# 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 20
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
fdtdir /boot/dtb
append root=LABEL=ROOT ro cma=192M console=tty1
EOF