summaryrefslogtreecommitdiff
path: root/init/do_mounts_initrd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-08 19:18:54 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-30 09:22:47 +0300
commit9acc17baf1fd6369cf969b1130bcf8c4b616ecfb (patch)
tree5aba2cae338e135e875d46677e216d4edbcfbb99 /init/do_mounts_initrd.c
parentf0ea68f1390ca11aae9e08a042c6dba5bc48eea2 (diff)
downloadlinux-9acc17baf1fd6369cf969b1130bcf8c4b616ecfb.tar.xz
initrd: mark initrd support as deprecated
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>
Diffstat (limited to 'init/do_mounts_initrd.c')
-rw-r--r--init/do_mounts_initrd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index 57ad5b2da8f5..e08669187d63 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -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 */