You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
579 B
24 lines
579 B
3 years ago
|
#!/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 $GLOBAL_UBOOT_TIMEOUT
|
||
|
|
||
|
label linux
|
||
|
kernel /boot/vmlinuz
|
||
|
initrd /boot/initrd.img
|
||
|
fdtdir /boot/dtb
|
||
|
append root=LABEL=ROOT ro $GLOBAL_BASE_BOOTARGS $GLOBAL_UBOOT_BOOTARGS $TTY
|
||
|
EOF
|
||
|
|
||
|
[ -z "${GLOBAL_UBOOT_NOFDTDIR:-}" ] || sed -i -e '/^[\t]*fdtdir \/boot\/dtb$/d' /boot/extlinux/extlinux.conf
|