init: Introduce rootdir bootparm to select which dir to sys_chroot
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Al Boldi
Second try; this time with a doc-update, and the ability to remount normally.
Tested against 2.6.23.
---
This patch introduces a rootdir kernel boot parameter, which specifies the path to the kernel
sys_chrootboot dir.This is useful for systems that have more than one distribution installed on the same fs/partition.
1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere.
(Always "$rootdir/oldroot"? Additional parameter? I'm not sure ...)
2) You use a static buffer, but you don't check for bad return values of strlcat().
Quoted 5 lines · Bodo Eggert
1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere.
(Always "$rootdir/oldroot"? Additional parameter? I'm not sure ...)
Again, this is a good example of why this really shouldn't be additional hacks in kernel space.
-hpa
Quoted 9 lines · H. Peter Anvin
Quoted 4 lines · Bodo Eggert
1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere.
(Always "$rootdir/oldroot"? Additional parameter? I'm not sure ...)Again, this is a good example of why this really shouldn't be additional hacks in kernel space.
ACK, but until kinit is default (and Godot arrives), this little hack does seem to be useful.
Signature · 3 lines
Top 100 things you don't want the sysadmin to say:
63. Oracle will be down until 8pm, but you can come back in and finish your
work when it comes up tonight.Quoted 10 lines · Bodo Eggert
Quoted 7 lines · H. Peter Anvin
Quoted 4 lines · Bodo Eggert
1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere.
(Always "$rootdir/oldroot"? Additional parameter? I'm not sure ...)Again, this is a good example of why this really shouldn't be additional hacks in kernel space.
ACK, but until kinit is default (and Godot arrives), this little hack does seem to be useful.
I disagree, on two accounts:
a. For as long as we keep throwing more crap into the kernel, kinit will not get merged, because it "provides no new functionality."
b. You don't need kinit and kernel-tree integeration to do this in an external initramfs. You can do this with any number of codebases as an external initramfs.
-hpa
Quoted 2 lines · H. Peter Anvin
a. For as long as we keep throwing more crap into the kernel, kinit will not get merged, because it "provides no new functionality."
I'm not really familiar with kinit, but it sounds unfair to hinder new features because it would reduce the usefulness of another project.
kinit should have nothing to fear, as its purpose would not be to add new features, but rather to modularize the boot process, by replacing the current init, and thus allow for more flexibility to add/modify features.
Thanks!
--
Al