You are not logged in.

#1 2012-08-01 15:32:21

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

[Solved]Can syslinux boot another Linux without its own bootloader?

As the title says.  The wiki talks about chainloading grub on another distro, but I don't have grub (or any other bootloader) installed on the other distro.  I can't find a clear answer with google, much less instructions how to do it if it's possible.

To be more specific, I'm using extlinux to boot Arch with a separate /boot, and the "other distro" is entirely contained in one partition.  The "other distro" is actually Arch too, so it's not so simple as just copying its kernel and initrd over to the separate /boot.

Last edited by alphaniner (2012-08-01 15:43:57)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#2 2012-08-01 15:37:45

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

It can only load stuff that's on the same partition as itself. So if you have a /boot partition and all distros have their kernels and initramfses there, you can load them. If you don't have such a partition, you need to chainload.

Offline

#3 2012-08-01 15:43:39

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

Thanks for the quick response.  It's not the answer I was hoping for, but at least I can move forward now.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2012-08-01 18:21:55

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

Basically you place the other distribution's kernel and initramfs on the /boot partition and duplicate the current entry from the syslinux.cfg (except with a different root and maybe a few different options on the APPEND line too).


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-08-01 19:05:26

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

Yeah, I've done that since my last post.  The only niggle is that, both distros being Arch (the second is a minimal 'recovery' - among other things - install), the kernels names are the same.  Eventually I'll need to come up with a scripted solution for that...


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2012-08-01 19:22:26

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

no need for a script, just update one of your /etc/mkinitcpio.d/linux.preset and use different names for your kernel/initramfs

Offline

#7 2012-08-01 19:35:16

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

I'm already doing that for the initramfs.  As for the kernel, if you're talking about the ALL_kver variable, it seems like modifying that would cause at least as much trouble as it solved, and I'd still need to manually rename the kernel.  Thanks for the suggestion though.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2012-08-01 20:10:16

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

Maybe I'm missing something, but just chainload to Syslinux installed on your other distro's partition, surely?
That's what I do on all our systems ...
wink

Offline

#9 2012-08-01 20:29:58

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Can syslinux boot another Linux without its own bootloader?

Syslinux is not installed on the other distro, nor do I want it to be.  A shared /boot is less offensive, despite the minor inconvenience; I was already considering it anyhow.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB