What if you ran a different distro's kernel on your / filesystem?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What if you ran a different distro's kernel on your / filesystem?
Perhaps this isn't the right forum, but it is the Slackware filesystem I may be destroying so I though I'd ask here first.
What might or might not work if you ran a different distro's kernel but substituted Slackware's / filestem in grub or LILO? Say if you were multibooting Ubuntu or Debian and used their kernel and/or initrd but Slackware's filesystem. Anyone ever try that, even as a typo in a config?
Would it just not work, or would it mess up the filesystem beyond all repair? Or, would it work fine if the kernel was "generic" enough (i.e not too many strange distro specific patches)?
It shouldn't mess up your filesystem and may or may not work, depending on how close the version and compiled options match -it will probably be looking the kernel modules which match the kernel too, so you might need to copy them into your slack filesystem so they are available when booting with the foreign kernel.
It should work OK. People do this all the time when they compile their own kernel. Using another distribution's kernel should be no different than compiling your own kernel.
Another common example is booting a liveCD and then chroot to a hard drive / partition. You are using the liveCD kernel and the hard drive / file system. People do this often when repairing broken systems with the liveCD being produced by somebody other than the distribution which produced the / file system.
Well, that's good to know. gnashley- thanks for the reminder about kernel modules. jailbait - probably because I don't understand it that well, chrooting seems less permanent than mounting as root...dunno, safer somehow, just like mounting from a rescue CD and renaming it as root. As for compiling your own kernel, well, the slackware kernel is pretty vanilla, so compiling a new one is like running slackware! Thanks though.
What might or might not work if you ran a different distro's kernel but substituted Slackware's / filestem in grub or LILO?
As the above posters noted, it will usually run. In fact most people do this at one time or another accidentally with a botched lilo configuration - it is mostly just confusing when you are not expecting it.
I doubt that you would harm your filesystem this way, at least not with common distro kernels, but I don't think it would be a good idea to do this as your normal operating boot, if that is the point of your question.
There is the obvious potential for complications with kernel modules, but I suspect that there could be other nasty effects, particularly if you try to install or build packages in that mode. Lots of potential for problems in fact.
I wasn't really planning on that being my normal operating boot, but thought it might come in handy occasionally, mostly as a way to avoid the tedious and wasteful duplication of installation of applications.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.