Re: [PATCH v2 2/3] initrd: remove deprecated code path (linuxrc)
From: Randy Dunlap
Date: Fri Oct 10 2025 - 15:31:47 EST
Hi,
On 10/10/25 2:40 AM, Askar Safin wrote:
> Remove linuxrc initrd code path, which was deprecated in 2020.
>
> Initramfs and (non-initial) RAM disks (i. e. brd) still work.
>
> Both built-in and bootloader-supplied initramfs still work.
>
> Non-linuxrc initrd code path (i. e. using /dev/ram as final root
> filesystem) still works, but I put deprecation message into it
>
> Signed-off-by: Askar Safin <safinaskar@xxxxxxxxx>
> ---
> .../admin-guide/kernel-parameters.txt | 4 +-
> fs/init.c | 14 ---
> include/linux/init_syscalls.h | 1 -
> include/linux/initrd.h | 2 -
> init/do_mounts.c | 4 +-
> init/do_mounts.h | 18 +---
> init/do_mounts_initrd.c | 85 ++-----------------
> init/do_mounts_rd.c | 17 +---
> 8 files changed, 17 insertions(+), 128 deletions(-)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 521ab3425504..24d8899d8a39 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -4285,7 +4285,7 @@
> Note that this argument takes precedence over
> the CONFIG_RCU_NOCB_CPU_DEFAULT_ALL option.
>
> - noinitrd [RAM] Tells the kernel not to load any configured
> + noinitrd [Deprecated,RAM] Tells the kernel not to load any configured
> initial RAM disk.
>
> nointremap [X86-64,Intel-IOMMU,EARLY] Do not enable interrupt
> @@ -5299,7 +5299,7 @@
> ramdisk_size= [RAM] Sizes of RAM disks in kilobytes
> See Documentation/admin-guide/blockdev/ramdisk.rst.
>
> - ramdisk_start= [RAM] RAM disk image start address
> + ramdisk_start= [Deprecated,RAM] RAM disk image start address
>
> random.trust_cpu=off
> [KNL,EARLY] Disable trusting the use of the CPU's
There are more places in Documentation/ that refer to "linuxrc".
Should those also be removed or fixed?
accounting/delay-accounting.rst
admin-guide/initrd.rst
driver-api/early-userspace/early_userspace_support.rst
power/swsusp-dmcrypt.rst
translations/zh_CN/accounting/delay-accounting.rst
Thanks.