00-uboot-prepare 579 Bytes
Newer Older
1 2
#!/bin/sh

3 4 5
TTY=
echo $GLOBAL_BASE_BOOTARGS | grep console= ||
  TTY='console=tty1'
6

7 8 9 10 11 12 13
# 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
14
timeout $GLOBAL_UBOOT_TIMEOUT
15 16 17 18 19

label linux
	kernel /boot/vmlinuz
	initrd /boot/initrd.img
	fdtdir /boot/dtb
20
	append root=LABEL=ROOT ro $GLOBAL_BASE_BOOTARGS $GLOBAL_UBOOT_BOOTARGS $TTY
21
EOF
22 23

[ -z "${GLOBAL_UBOOT_NOFDTDIR:-}" ] || sed -i -e '/^[\t]*fdtdir \/boot\/dtb$/d' /boot/extlinux/extlinux.conf