[ CCode ( array_length_pos = 2.1 , array_length_type = "gsize" ) ]
[ Version ( since = "1.0.84" ) ]
public uint8[] initrd_cat (string initrdpath, string filename) throws Error
list the contents of a single file in an initrd
This command unpacks the file filename from the initrd file called initrdpath. The filename must be given *without* the initial / character.
For example, in guestfish you could use the following command to examine the boot script (usually called /init) contained in a Linux initrd or initramfs image:
<![CDATA[initrd-cat /boot/initrd-<version>.img init]]>
See also initrd_list.
this |
A GuestfsSession object |
size_r |
The size of the returned buffer, in bytes |
an array of binary data, or NULL on error |