mkimage-profiles/features.in/uboot/image-scripts.d/00-uboot-prepare

24 lines
458 B
Plaintext
Raw Normal View History

2019-05-30 12:27:25 +03:00
#!/bin/sh
2019-06-13 16:15:41 +03:00
if [ -n "$GLOBAL_TTY_RATE" ] ;then
TTY="$GLOBAL_TTY_DEV","$GLOBAL_TTY_RATE"
else
TTY="$GLOBAL_TTY_DEV"
fi
2019-05-30 12:27:25 +03:00
# 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
2020-06-30 15:56:38 +03:00
timeout 70
2019-05-30 12:27:25 +03:00
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
fdtdir /boot/dtb
2019-06-13 16:15:41 +03:00
append root=LABEL=ROOT ro cma=192M console=$TTY
2019-05-30 12:27:25 +03:00
EOF