1 diff --git a/geninitrd b/geninitrd
2 index 7b962b5..a4de196 100755
5 @@ -1103,8 +1103,7 @@ sym_exists() {
6 # find best compressor (or forced one) for initrd
9 - # fastest initrd decompression speed is first
10 - local compressors='lzo gzip xz lzma bzip2'
11 + local compressors='xz lzma bzip2 gzip lzo'
13 # a specified one, take it
14 if ! is_yes "$mode"; then
15 diff --git a/mod-md.sh b/mod-md.sh
16 index a0cd7aa..d9093d4 100644
19 @@ -139,13 +139,15 @@ initrd_gen_md() {
21 inst_exec $mdassemble /bin/mdassemble
23 + echo "DEVICE partitions containers" >> "$DESTDIR/etc/mdadm.conf"
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)
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
37 commit 11202855dbaee5bc32209913df1ae8738c210c39
38 Author: Arkadiusz Miśkiewicz <arekm@maven.pl>
39 Date: Sat May 14 00:36:02 2016 +0200
41 Make rootdev fallback work.
43 diff --git a/geninitrd b/geninitrd
44 index 92a519d..771245e 100755
47 @@ -1004,7 +1004,11 @@ initrd_gen_initramfs_switchroot() {
49 # XXX hack, fallback to rootdev from geninitrd time
50 if [ ! -e "$device" ]; then
55 + add_linuxrc <<-'EOF'
56 echo "DEVICE set to $device based on fstab entry from initrd gen time"
59 commit 583a7f5f8783fb1f92b75ca9f651d675df016b73
60 Author: Arkadiusz Miśkiewicz <arekm@maven.pl>
61 Date: Tue Jun 7 08:30:46 2016 +0200
65 diff --git a/geninitrd b/geninitrd
66 index 771245e..62e47ee 100755
69 @@ -273,7 +273,7 @@ mount_run() {
73 - echo "mount -t tmpfs run /run" | add_linuxrc
74 + echo "mount -t tmpfs run /run -o mode=0755" | add_linuxrc
77 # unmount all mountpoints mounted by geninitrd