]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
init: remove /proc/sys/kernel/real-root-dev
authorAskar Safin <safinaskar@gmail.com>
Wed, 19 Nov 2025 22:24:07 +0000 (22:24 +0000)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 16:22:27 +0000 (17:22 +0100)
It is not used anymore.

Signed-off-by: Askar Safin <safinaskar@gmail.com>
Link: https://patch.msgid.link/20251119222407.3333257-4-safinaskar@gmail.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/admin-guide/sysctl/kernel.rst
include/uapi/linux/sysctl.h
init/do_mounts_initrd.c

index 239da22c4e28f192d654667776e5c7f5dfee134f..bb577fac76a01abee3d7a355311541c4b67fe082 100644 (file)
@@ -1235,12 +1235,6 @@ that support this feature.
 ==  ===========================================================================
 
 
-real-root-dev
-=============
-
-See Documentation/admin-guide/initrd.rst.
-
-
 reboot-cmd (SPARC only)
 =======================
 
index 63d1464cb71c86d728b402cb9df47b96d0209880..1c7fe0f4dca48266e3cc6fd4256329c5dce8947e 100644 (file)
@@ -92,7 +92,6 @@ enum
        KERN_DOMAINNAME=8,      /* string: domainname */
 
        KERN_PANIC=15,          /* int: panic timeout */
-       KERN_REALROOTDEV=16,    /* real root device to mount after initrd */
 
        KERN_SPARC_REBOOT=21,   /* reboot command on Sparc */
        KERN_CTLALTDEL=22,      /* int: allow ctl-alt-del to reboot */
index fe335dbc95e0fa616c7b06955f74e6704684c6b9..892e69ab41c4463fb69a66f03d77ee9669e0d150 100644 (file)
@@ -8,31 +8,11 @@
 
 unsigned long initrd_start, initrd_end;
 int initrd_below_start_ok;
-static unsigned int real_root_dev;     /* do_proc_dointvec cannot handle kdev_t */
 static int __initdata mount_initrd = 1;
 
 phys_addr_t phys_initrd_start __initdata;
 unsigned long phys_initrd_size __initdata;
 
-#ifdef CONFIG_SYSCTL
-static const struct ctl_table kern_do_mounts_initrd_table[] = {
-       {
-               .procname       = "real-root-dev",
-               .data           = &real_root_dev,
-               .maxlen         = sizeof(int),
-               .mode           = 0644,
-               .proc_handler   = proc_dointvec,
-       },
-};
-
-static __init int kernel_do_mounts_initrd_sysctls_init(void)
-{
-       register_sysctl_init("kernel", kern_do_mounts_initrd_table);
-       return 0;
-}
-late_initcall(kernel_do_mounts_initrd_sysctls_init);
-#endif /* CONFIG_SYSCTL */
-
 static int __init no_initrd(char *str)
 {
        pr_warn("noinitrd option is deprecated and will be removed soon\n");