Commit c247eff
committed
Fix overlayfs test: use unmkinitramfs for multi-archive initrd
The verify step was extracting only the first cpio archive from
initrd.img. mkinitramfs produces a concatenation of an uncompressed
early-microcode cpio followed by the compressed main archive; file(1)
identifies the leading bytes as "ASCII cpio archive", so the test fell
into the plain `cpio -idm` branch and unpacked only the ~217 KB
microcode portion, missing the overlayroot scripts in the compressed
remainder.
Replace the format detection with unmkinitramfs (initramfs-tools-core),
which handles concatenated and arbitrarily compressed initrd images.1 parent 1df1db2 commit c247eff
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
68 | 65 | | |
69 | | - | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| |||
0 commit comments