]> git.pld-linux.org Git - packages/geninitrd.git/blame - geninitrd-git.patch
- rel 2; compressors list changed to make best (size) ones as first; always add parti...
[packages/geninitrd.git] / geninitrd-git.patch
CommitLineData
4c880565
AM
1diff --git a/geninitrd b/geninitrd
2index 7b962b5..a4de196 100755
3--- a/geninitrd
4+++ b/geninitrd
5@@ -1103,8 +1103,7 @@ sym_exists() {
6 # find best compressor (or forced one) for initrd
7 find_compressor() {
8 local mode="$1"
9- # fastest initrd decompression speed is first
10- local compressors='lzo gzip xz lzma bzip2'
11+ local compressors='xz lzma bzip2 gzip lzo'
12
13 # a specified one, take it
14 if ! is_yes "$mode"; then
15diff --git a/mod-md.sh b/mod-md.sh
16index a0cd7aa..d9093d4 100644
17--- a/mod-md.sh
18+++ b/mod-md.sh
19@@ -139,13 +139,15 @@ initrd_gen_md() {
20
21 inst_exec $mdassemble /bin/mdassemble
22
23+ echo "DEVICE partitions containers" >> "$DESTDIR/etc/mdadm.conf"
24+
25 # LVM on RAID case
26 local dev_list_extra ex_dev
27 dev_list_extra=$(awk '/^DEVICE / { for (i=2; i<=NF; i++) { printf "%s ", $i; }; } ' /etc/mdadm.conf | xargs)
28 new_dev_list_extra=""
29 for ex_dev in $dev_list_extra; do
30- if [ "$ex_dev" = "partitions" ]; then
31- echo "DEVICE partitions" >> "$DESTDIR/etc/mdadm.conf"
32+ if [ "$ex_dev" = "partitions" -o "$ex_dev" = "containers" ]; then
33+ echo "DEVICE $ex_dev" >> "$DESTDIR/etc/mdadm.conf"
34 # FIXME: find and copy partition devices from /proc/partitions
35 # - best if done at runtime, now initrd gen time
36 continue
This page took 0.071632 seconds and 4 git commands to generate.