add boot argument to allow legacy change_root removal

Bug #201486 reported by Jeremy Jackson
2
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: initramfs-tools

In Linux 2.6 the change_root method of invoking initrd is considered "legacy", and might be removed in future. The new method is pivot_root, which does not have any special case code paths in kernel for initrd after it's block device /dev/ram0 is created. The kernel should be booted "vmlinux root=/dev/ram0" which will mount the initrd, and execute /sbin/init.

At present, this is problematic for initrd-tools (Gutsy), since there is no way to specify the "real" root filesystem that is desired, without using root= kernel commandline argument.

I propose a new argument be interpreted by initrd-tools /init script, to allow migration to a fixed "root=/dev/ram0" on all kernels using initrd to mount the real root device. There is precedent with rdinit=, although "rdroot=/dev/sda1" seems counterintuitive. Alternatives should be considered that are not confusing. Perhaps root2=, realroot=, or some other form.

Parsing the new argument could be conditional on finding "root=/dev/ram0" in kernel commandline, to make things more precise.

Daniel T Chen (crimsun)
Changed in initramfs-tools:
importance: Undecided → Wishlist
Revision history for this message
maximilian attems (maks-debian) wrote :

initrd-tools is long gone, thus closing.

Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.