22 lines
427 B
Bash
Executable File
22 lines
427 B
Bash
Executable File
#!/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 70
|
|
|
|
label linux
|
|
kernel /boot/vmlinuz
|
|
initrd /boot/initrd.img
|
|
fdtdir /boot/dtb
|
|
append root=LABEL=ROOT ro $TTY $GLOBAL_BASE_BOOTARGS
|
|
EOF
|