Skip to content

Commit

Permalink
initrd: mark initrd support as deprecated
Browse files Browse the repository at this point in the history
The classic initial ramdisk has been replaced by the much more
flexible and efficient initramfs a long time.  Warn about it being
removed soon.

Includes a spelling fix from Colin Ian King <colin.king@canonical.com>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christoph Hellwig committed Jul 30, 2020
1 parent f0ea68f commit 9acc17b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init/do_mounts_initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ static void __init handle_initrd(void)
extern char *envp_init[];
int error;

pr_warn("using deprecated initrd support, will be removed in 2021.\n");

real_root_dev = new_encode_dev(ROOT_DEV);
create_dev("/dev/root.old", Root_RAM0);
/* mount initrd on rootfs' /root */
Expand Down

0 comments on commit 9acc17b

Please sign in to comment.