Merge pull request #414 from bferturk/master

mkinitcpio
This commit is contained in:
Ertuğrul Erata
2016-04-30 09:43:25 +03:00
9 changed files with 1505 additions and 218 deletions
+10 -3
View File
@@ -42,12 +42,19 @@ def install():
shelltools.touch("linux.preset")
shelltools.echo("linux.preset", 'ALL_config="/etc/mkinitcpio.conf"\n'+
shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
'ALL_kver="/boot/kernel-%s"\n'% get.srcVERSION() +
'ALL_config="/etc/mkinitcpio.conf"\n'+
'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() +
"PRESETS=('default' 'fallback') \n\n" +
'#default_config="/etc/mkinitcpio.conf"\n' +
'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
'default_options="-S autodetect"\n')
'#default_options=""\n\n' +
'#fallback_config="/etc/mkinitcpio.conf"\n'+
'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() +
'fallback_options="-S autodetect"\n')
pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
-1
View File
@@ -190,7 +190,6 @@
<Name>kernel</Name>
<RuntimeDependencies>
<Dependency>pisi</Dependency>
<Dependency>mkinitramfs</Dependency>
<Dependency>linux-firmware</Dependency>
<Dependency>grub2</Dependency>
</RuntimeDependencies>
+7
View File
@@ -30,8 +30,15 @@
<Dependency>libarchive</Dependency>
<Dependency>kmod</Dependency>
<Dependency>libkmod</Dependency>
<Dependency>kernel</Dependency>
<Dependency>busybox-mkinitcpio</Dependency>
</RuntimeDependencies>
<Replaces>
<Package>mkinitramfs</Package>
</Replaces>
<Conflicts>
<Package>mkinitramfs</Package>
</Conflicts>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
+1478 -207
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1 +1 @@
e1fbd25c32904d062edd5ac20444dabcfaebce35
11f7965b4c0e48e8a888c4174228518341866008
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
9c9098b1d5fb4002f282218cb515c010774c2ab3
8e0dbc0411a894763c38f38b3aeda489b3a215d4
+1
View File
@@ -25,6 +25,7 @@
<Name>help2man</Name>
<RuntimeDependencies>
<Dependency>perl-Locale-gettext</Dependency>
<Dependency>mkinitcpio</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
@@ -1,5 +1,5 @@
--- grub-2.00/util/grub.d/10_linux.in~ 2012-04-18 23:24:38.000000000 +0200
+++ grub-2.00/util/grub.d/10_linux.in 2012-11-28 22:27:41.652673833 +0100
--- grub-2.02~beta2.orig/util/grub.d/10_linux.in 2013-12-24 18:45:34.000000000 +0200
+++ grub-2.02~beta2/util/grub.d/10_linux.in 2016-04-28 19:10:54.268739535 +0300
@@ -29,7 +29,13 @@
CLASS="--class gnu-linux --class gnu --class os"
@@ -14,11 +14,13 @@
+ fi
else
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
@@ -193,6 +199,7 @@
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
@@ -186,7 +192,8 @@
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
"initrd-${version}" "initramfs-${version}.img" \
- "initrd-${version}" "initramfs-${version}.img" \
+ "initrd-${version}" "initramfs-${version}.img" "initramfs-fallback-${version}.img"\
+ "initramfs-${version}.gz" "initramfs-${version}" \
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
"initrd-${alt_version}" "initramfs-${alt_version}.img" \