File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Name: make-initrd-bootloader
2- Version: 0.3
2+ Version: 0.4
33Release: alt1
44
55Summary: Bootloader feature for make-initrd
66License: GPL-2
77Group: System/Base
88
9+ ExclusiveArch: x86_64
10+
911Source0: %name -%version .tar
1012
1113BuildRequires: make sed bc flex
@@ -30,8 +32,16 @@ Make-initrd bootloader feature.
3032%makeinstall _std
3133
3234kver= "`cat "%buildroot /lib/bootloader/boot/version"`"
33- mv -f -- "%buildroot /lib/bootloader/boot/System.map" "%buildroot /lib/bootloader/boot/System.map-$kver"
34- mv -f -- "%buildroot /lib/bootloader/boot/config" "%buildroot /lib/bootloader/boot/config-$kver"
35+
36+ [ -e "%buildroot /lib/bootloader/boot/System.map-$kver" ] ||
37+ mv -f -- \
38+ "%buildroot /lib/bootloader/boot/System.map" \
39+ "%buildroot /lib/bootloader/boot/System.map-$kver"
40+
41+ [ -e "%buildroot /lib/bootloader/boot/config-$kver" ] ||
42+ mv -f -- \
43+ "%buildroot /lib/bootloader/boot/config" \
44+ "%buildroot /lib/bootloader/boot/config-$kver"
3545
3646mkdir -p %buildroot /%_datadir /make-initrd/features
3747cp -a feature %buildroot /%_datadir /make-initrd/features/bootloader
@@ -67,6 +77,9 @@ touch %buildroot/boot/bootloader.conf
6777%_datadir /make-initrd/features/bootloader
6878
6979%changelog
80+ * Thu Apr 09 2020 Alexey Gladkov <legion@altlinux.ru> 0.4-alt1
81+ - Built package only for x86_64.
82+
7083* Sun Apr 05 2020 Alexey Gladkov <legion@altlinux.ru> 0.3-alt1
7184- Rename loader.
7285
You can’t perform that action at this time.
0 commit comments