Commit b9f07991 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] quieten initramfs and fix /dev permissions

Dont print the contents of the initramfs, for any decent sized cpio it will
overflow the kernel ring buffer. 

Also relax permissions on /dev (755 not 700).
parent 6fd5c7bf
......@@ -248,7 +248,6 @@ static int __init do_name(void)
next_state = Reset;
return 0;
}
printk(KERN_INFO "-> %s\n", collected);
if (S_ISREG(mode)) {
if (maybe_link() >= 0) {
wfd = sys_open(collected, O_WRONLY|O_CREAT, mode);
......
......@@ -212,7 +212,7 @@ void cpio_mkfile(const char *filename, const char *location,
int main (int argc, char *argv[])
{
cpio_mkdir("/dev", 0700, 0, 0);
cpio_mkdir("/dev", 0755, 0, 0);
cpio_mknod("/dev/console", 0600, 0, 0, 'c', 5, 1);
cpio_mkdir("/root", 0700, 0, 0);
cpio_trailer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment