Debug initramfs images
$ mkdir /tmp/testdir
$ ls /boot/
config-3.10.0-957.el7.x86_64
efi
grub
grub2
initramfs-0-rescue-e45307abc30a407dbbd42a0632810083.img
initramfs-3.10.0-957.el7.x86_64.img
initramfs-3.10.0-957.el7.x86_64kdump.img
symvers-3.10.0-957.el7.x86_64.gz
System.map-3.10.0-957.el7.x86_64
vmlinuz-0-rescue-e45307abc30a407dbbd42a0632810083
vmlinuz-3.10.0-957.el7.x86_64
$ cp -r /boot/initramfs-3.10.0-957.el7.x86_64.img /tmp/testdir/i
$ ls /tmp/testdir/i
i
$ cd /tmp/testdir/
$ file i
i: ASCII cpio archive (SVR4 with no CRC)
$ cpio -i --no-absolute-filenames <i
86917 blocks
$ ls /tmp/testdir/
bin etc init lib64 root sbinb sys tmp var
dev i lib proc run shutdown systoot usr
$ ls -l init
lrwxrwxrwx. 1 root root 11 Apr 20 11:12 init -> usr/lib/systemd/systemd
$ mkdir /tmp/testdir
$ ls /boot/
config-3.10.0-957.el7.x86_64
efi
grub
grub2
initramfs-0-rescue-e45307abc30a407dbbd42a0632810083.img
initramfs-3.10.0-957.el7.x86_64.img
initramfs-3.10.0-957.el7.x86_64kdump.img
symvers-3.10.0-957.el7.x86_64.gz
System.map-3.10.0-957.el7.x86_64
vmlinuz-0-rescue-e45307abc30a407dbbd42a0632810083
vmlinuz-3.10.0-957.el7.x86_64
$ cp -r /boot/initramfs-3.10.0-957.el7.x86_64.img /tmp/testdir/i
$ ls /tmp/testdir/i
i
$ cd /tmp/testdir/
$ file i
i: ASCII cpio archive (SVR4 with no CRC)
$ cpio -i --no-absolute-filenames <i
86917 blocks
$ ls /tmp/testdir/
bin etc init lib64 root sbinb sys tmp var
dev i lib proc run shutdown systoot usr
$ ls -l init
lrwxrwxrwx. 1 root root 11 Apr 20 11:12 init -> usr/lib/systemd/systemd
No comments:
Post a Comment