You are not logged in.

#1 2013-06-23 01:22:42

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

trouble booting with systemd and syslinux

I'm trying to migrate to systemd. I've installed syslinux, and it's working in that I can use it to boot using the old method. In my /boot/syslinux/syslinux.cfg file, my first label block reads

LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda3 ro
    init=/usr/lib/systemd/systemd

I know sda3 is the right partition because I can boot into it using the old method. When I look at the actual command it uses to boot when I try to use systemd, it doesn't actually append the "init=/usr/ ...." stuff at the end. When I type it in manually it gives me a kernel panic. I'm stumped. It's worked once because when I ran

cat /proc/1/comm

it showed systemd. But, that time I had to type something in while booting, but I forget what it was.

Offline

#2 2013-06-23 01:32:25

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

I try to run

.linux ../vmlinux-linux root=/dev/sda3 ro init//usr/lib/systemd/systemd

and it shows

Loading ../vmlinuz-linux ......ready.
Probing EDD (edd=off to disable) ... ok
early console in decompress_kernel

Decompressing Linux... Parsing ELF... done.

Booting the kernel.

at this point at the beginning of each line is [    0.####] where the #### are some numbers. Then it says
tsc: Fast TSC calibration failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

and then it has some other stuff that I don't think is useful.

Offline

#3 2013-06-23 01:52:49

Trilby
Forum Fellow
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 17,558
Website

Re: trouble booting with systemd and syslinux

There are probably several issues here - but the first is that init doesn't get appended because you don't have it on the APPEND line.

Next, do you have systemd-sysvcompat installed?  You shoud.  If you do, you should not need to include init in your boot loader.

As for the other stuff that you don't think is useful - it may well be.  Post the actual output.


Resist the GNU world order.

Offline

#4 2013-06-23 02:00:13

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

It does the same thing when I have init on the append line. It also does the same thing when I type it in manually in the menu. I can't install systemd-sysvcompat because it says it's in conflict with sysvinit. When I try to remove sysvinit, it says there's an error because initscripts requires sysvinit.

Offline

#5 2013-06-23 02:04:57

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 6,312

Re: trouble booting with systemd and syslinux

yeah, wait until you get migrated to install systemd-sysvcompat

if you really typed "init//usr/lib/systemd/systemd", that would be a problem but the real problem is not including the initramfs. Fix your syslinux.cfg and try again.

Last edited by Scimmia (2013-06-23 02:05:47)

Offline

#6 2013-06-23 02:08:52

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

er, yea, sorry, i typed "init=/usr/lib/systemd/systemd"

what do you mean wait to get migrated?

... I'm trying to install systemd because I need to do it before I can remove /bin and /sbin, and I need to do that to upgrade my system using packman. I've followed the instructions here

https://wiki.archlinux.org/index.php/Sy … stallation

exactly, but it keeps saying the kernel is out of sync, it has a kernel panic.

Offline

#7 2013-06-23 02:12:36

Trilby
Forum Fellow
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 17,558
Website

Re: trouble booting with systemd and syslinux

Scimmia is, of course, right.  I completely missed the absence of INITRD.  Nevermind the sysvcompat stuff (for now).  In think you've confused INITRD with init.  See the syslinux page for how the config should look.


Resist the GNU world order.

Offline

#8 2013-06-23 02:13:16

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 6,312

Re: trouble booting with systemd and syslinux

I just mean don't install systemd-sysvcompat until you have everything set up and running with systemd.

As I said, you have no initrd specified. Without that the kernel can't mount root.

Last edited by Scimmia (2013-06-23 02:14:07)

Offline

#9 2013-06-23 02:22:42

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

How do I specify an initrd file to use systemd? When I try

initrd=/usr/lib/systemd/systemd

it does

it says it could not find the ramdisk image.

... should I just be using Grub2 instead?

Offline

#10 2013-06-23 02:25:19

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 6,312

Re: trouble booting with systemd and syslinux

Trilby wrote:

In think you've confused INITRD with init.

Looks like Trilby nailed it.

cupcake1234, init= and INITRD are two completely different entries. INITRD specifies the ram drive image to load, init= is the init system. You add init= to the end of the APPEND line, INITRD does not change. See the syslinux Wiki page to see what it should look like.

Offline

#11 2013-06-23 02:37:21

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

I tried adding INITRD as it is on the syslinux wiki page, and I got the same kernel panic message.

Offline

#12 2013-06-23 02:38:57

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 6,312

Re: trouble booting with systemd and syslinux

post your syslinux.cfg

Offline

#13 2013-06-23 02:43:13

cupcake1234
Member
Registered: 2013-06-22
Posts: 11

Re: trouble booting with systemd and syslinux

well, maybe i just typed it in wrong the first time, but with it in the .cfg file, it worked. thanks guys!

Offline

Board footer

Powered by FluxBB