Bug 753291 - boot fails with systemd update
Summary: boot fails with systemd update
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-11 19:37 UTC by sean darcy
Modified: 2012-01-26 22:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-26 22:24:17 UTC
Type: ---


Attachments (Terms of Use)
a jpg from cell phone of failed boot screen (784.25 KB, image/jpeg)
2011-11-11 19:37 UTC, sean darcy
no flags Details

Description sean darcy 2011-11-11 19:37:03 UTC
Created attachment 533158 [details]
a jpg from cell phone of failed boot screen

Description of problem:
With the upgrade of systemd, boot will fail if /cgroup in fstab

Version-Release number of selected component (if applicable):
rpm -q systemd
systemd-26-13.fc15.x86_64

How reproducible:


Steps to Reproduce:
1.update systemd
2.reboot
3.
  
Actual results:

Starting /cgroup
mount: none already mounted or /cgroup mounted
cgroup.mount mount process exited, code=exited status=32
< then lots of dependency failures>

Expected results:


Additional info:
With this upgrade of systemd, boot will fail if /cgroup is in fstab. I've attached a jpg of the failed boot screen.

Fixed by commenting out the cgroup line in fstab:

#none                   /cgroup                 cgroup   defaults        0 0

Importantly, I don't think I added this line to fstab. I don't use cgroups. It's from some upgrade. So this line likely to be in lots of machines.

As a general matter, it seems boot will fail if any of the entries in fstab can't be mounted. This causes a lot of trouble with remote systems. Shouldn't boot continue as long as / is available?

Comment 1 Kay Sievers 2011-11-11 21:49:09 UTC
/cgroup was mounted by an init script in earlier releases, not from fstab.

You are sure, you did not play around with containers or LXC, or anything
like that?

I would expect it was added it manually.

Comment 2 Michal Schmidt 2011-11-11 22:50:05 UTC
> With the upgrade of systemd, boot will fail if /cgroup in fstab
> 
> Version-Release number of selected component (if applicable):
> rpm -q systemd
> systemd-26-13.fc15.x86_64

Did systemd-26-10.fc15 have no problem with the /cgroup line in fstab? Does that version still work if you downgrade to it and keep the line in fstab uncommented?
systemd mounts cgroup controllers under /sys/fs/cgroup, but it's been doing since a long time ago, so I'm surprised why you started seeing the issue only now with the systemd-26-13.fc15 update.

> #none                   /cgroup                 cgroup   defaults        0 0
> 
> Importantly, I don't think I added this line to fstab. I don't use cgroups.
> It's from some upgrade. So this line likely to be in lots of machines.

I don't know if any script in Fedora adds this line. However, I found several websites where putting this line to fstab manually is suggested. They were all various LXC HOWTOs. Do you use LXC containers?

> As a general matter, it seems boot will fail if any of the entries in fstab
> can't be mounted. This causes a lot of trouble with remote systems. Shouldn't
> boot continue as long as / is available?

There's the "nofail" mount option that you can use in fstab to avoid this problem.
But it's true that classic initscripts were more lenient in this regard.

Comment 3 sean darcy 2011-11-12 14:47:08 UTC
>Did systemd-26-10.fc15 have no problem with the /cgroup line in fstab? 

systemd-26-10 had no problem.

>Does that version still work if you downgrade to it and keep the line in fstab
uncommented?

I'll see if I can do that. This is a remote production box, so it's a little dicey.

>I don't know if any script in Fedora adds this line. However, I found several
websites where putting this line to fstab manually is suggested. They were all
various LXC HOWTOs. Do you use LXC containers?

No I haven't tried LXC containers. If none of the Fedora scripts added it, I must have, but I sure don't remember.

Comment 4 Jóhann B. Guðmundsson 2012-01-25 13:40:54 UTC
Do you experience this with the latest release?

Comment 5 Jóhann B. Guðmundsson 2012-01-26 22:23:56 UTC
Closing this bug dont hesitate to reopen it if this is still an issue with the latest release of systemd thanks.


Note You need to log in before you can comment on or make changes to this bug.