Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

init: remove /proc/sys/kernel/real-root-dev

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>

authored by

Askar Safin and committed by
Christian Brauner
e6ce36cc c350a65b

-27
-6
Documentation/admin-guide/sysctl/kernel.rst
··· 1235 1235 == =========================================================================== 1236 1236 1237 1237 1238 - real-root-dev 1239 - ============= 1240 - 1241 - See Documentation/admin-guide/initrd.rst. 1242 - 1243 - 1244 1238 reboot-cmd (SPARC only) 1245 1239 ======================= 1246 1240
-1
include/uapi/linux/sysctl.h
··· 92 92 KERN_DOMAINNAME=8, /* string: domainname */ 93 93 94 94 KERN_PANIC=15, /* int: panic timeout */ 95 - KERN_REALROOTDEV=16, /* real root device to mount after initrd */ 96 95 97 96 KERN_SPARC_REBOOT=21, /* reboot command on Sparc */ 98 97 KERN_CTLALTDEL=22, /* int: allow ctl-alt-del to reboot */
-20
init/do_mounts_initrd.c
··· 8 8 9 9 unsigned long initrd_start, initrd_end; 10 10 int initrd_below_start_ok; 11 - static unsigned int real_root_dev; /* do_proc_dointvec cannot handle kdev_t */ 12 11 static int __initdata mount_initrd = 1; 13 12 14 13 phys_addr_t phys_initrd_start __initdata; 15 14 unsigned long phys_initrd_size __initdata; 16 - 17 - #ifdef CONFIG_SYSCTL 18 - static const struct ctl_table kern_do_mounts_initrd_table[] = { 19 - { 20 - .procname = "real-root-dev", 21 - .data = &real_root_dev, 22 - .maxlen = sizeof(int), 23 - .mode = 0644, 24 - .proc_handler = proc_dointvec, 25 - }, 26 - }; 27 - 28 - static __init int kernel_do_mounts_initrd_sysctls_init(void) 29 - { 30 - register_sysctl_init("kernel", kern_do_mounts_initrd_table); 31 - return 0; 32 - } 33 - late_initcall(kernel_do_mounts_initrd_sysctls_init); 34 - #endif /* CONFIG_SYSCTL */ 35 15 36 16 static int __init no_initrd(char *str) 37 17 {