Avoid multiple fdtdir entries per kernel by deleting before adding
This commit is contained in:
parent
ade3d31093
commit
e59efd2e65
|
@ -1,6 +1,6 @@
|
|||
Name: extlinux-bootloader
|
||||
Version: 1.2
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: The EXTLINUX bootloader framework, for booting the local system
|
||||
|
||||
License: GPLv2+
|
||||
|
@ -38,6 +38,9 @@ install -p %{SOURCE1} %{buildroot}%{_sbindir}/extlinux
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 22 2018 Pablo Greco <pablo@fliagreco.com.ar> - 1.2-6
|
||||
* Avoid multiple fdtdir entries
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ insert_fdtdir() {
|
|||
# for every 'kernel' directive found, map it to an 'fdtdir' directive
|
||||
# referencing the dtb directory and add it after the 'append' directive
|
||||
sed -i \
|
||||
-e '/ fdtdir/d' \
|
||||
-e '/ kernel/{h;s/kernel/fdtdir/g;s/vmlinuz/dtb/g;x}' \
|
||||
-e '/ append/{p;x}' \
|
||||
/boot/extlinux/extlinux.conf
|
||||
|
|
Loading…
Reference in New Issue