Initrd logs to a file on disk

2.4k Views Asked by At

I want to dump the initrd output to a file, what kind of changes either in bootloader some parameter which i can pass like console=tty or new process in initrd which can keep dumping logs to disk.

1

There are 1 best solutions below

0
On

This is a chicken-egg problem, before initramfs starts to mount the rootfs, how do you get the path of the file you want to dump the log?

After initramfs mounts rootfs and starts the /sbin/init on your rootfs, your log will be dumped to something like /var/log/messages, via syslogd or something like that.