Commit b1c1dd48 authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

uboot: initial feature

parent 2194c95f
Настраивает систему для использования загрузчика uboot.
use/uboot: use/kernel
@$(call add_feature)
@$(call add,THE_LISTS,singleboard-tools)
#!/bin/sh
[ "$GLOBAL_BASE_BOOTLOADER" = 'uboot' ] || exit 0
# 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 20
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
fdtdir /boot/dtb
append root=LABEL=ROOT ro cma=192M console=tty1
EOF
#!/bin/sh -x
kver="$(rpm -qa 'kernel-image*' \
--qf '%{installtime} %{version}-%{name}-%{release}\n' \
| sort -n \
| cut -f 2 -d ' ' \
| sed 's/kernel-image-//')"
[ -n "$kver" ] || { echo "** unable to deduce kernel version" >&2; exit 1; }
/sbin/installkernel --uboot --keep-initrd "$kver"
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment