lordievader | Good morning. | 06:00 |
---|---|---|
TJ- | Could someone please tell me what "file /boot/initrd.img*" reports please? | 18:31 |
k1l_ | on a 14.04 its: /boot/initrd.img-3.13.0-62-generic: gzip compressed data, from Unix, last modified: Mon Aug 17 23:21:24 2015 | 18:32 |
TJ- | No, for 15.10 | 18:33 |
brainwash | why? | 18:33 |
TJ- | On my Wily test-bed there's no compression: "/boot/initrd.img-4.1.0-3-lowlatency: ASCII cpio archive (SVR4 with no CRC)" | 18:33 |
k1l_ | i dont have a 15.10 running right now :) | 18:33 |
brainwash | probably because intel microcode loading is enabled | 18:34 |
brainwash | in /etc/default/intel-microcode | 18:34 |
brainwash | since 14.10 I guess | 18:35 |
brainwash | actually since 15.04 | 18:36 |
TJ- | Ah, so 'file' is kind-of lying, as in it's a pre-pended early-initramfs image in front of the gzipped image | 18:38 |
TJ- | I extracted the initrd.img to check some settings and was surprised that only the microcode was present :) | 18:39 |
TJ- | Good; binwalk knows where it is: "21504 0x5400 gzip compressed data," | 18:40 |
TJ- | Got it "RD=/boot/initrd.img-4.1.0-3-lowlatency; dd if=$RD bs=$(binwalk $RD | awk '/gzip/{print $1}') skip=1 | file -" ==> "/dev/stdin: gzip compressed data," | 18:43 |
brainwash | great! was afk for a while :) | 18:45 |
TJ- | What a pain that cpio has no option to report the size of what it reads; it's an expensive operation processing the file with binwalk | 18:50 |
en1gma | i have the ubuntu 15.10 willy which was an alpha. is there a newer version out that i should get? | 18:59 |
TJ- | OK, for completeness: can use cpio as long as we trust/assume block size is 512 bytes: "RD=/boot/initrd.img-4.1.0-3-lowlatency; dd if=$RD bs=$(cpio -t <$RD |& awk '/blocks/{print $1*512}') skip=1 | zcat | cpio -id " | 19:02 |
penguin42 | cpio is always a pita | 19:07 |
penguin42 | it's command line options seem to be designed primarily to confuse | 19:07 |
=== tomaw_ is now known as tomaw | ||
=== jack is now known as Guest98856 | ||
=== brainwash_ is now known as brainwash | ||
=== jack is now known as Guest7598 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!