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

22 lines
450 B
Plaintext
Raw Normal View History

2019-05-30 12:27:25 +03:00
#!/bin/sh
2020-06-29 20:23:03 +03:00
TTY=
echo $GLOBAL_BASE_BOOTARGS | grep console= ||
TTY='console=tty1'
2019-06-13 16:15:41 +03:00
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
append root=LABEL=ROOT ro $GLOBAL_BASE_BOOTARGS $GLOBAL_UBOOT_BOOTARGS $TTY
2019-05-30 12:27:25 +03:00
EOF