Bug 1014463

Summary: systemd-fstab-generator[886]: Failed to create mount unit file /run/systemd/generator/sysroot.mount, as it already exists. Duplicate entry in /etc/fstab?
Product: Red Hat Enterprise Linux 7 Reporter: Bruno Goncalves <bgoncalv>
Component: dracutAssignee: dracut-maint
Status: CLOSED DUPLICATE QA Contact: Bruno Goncalves <bgoncalv>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: bgoncalv, dracut-maint-list, harald, jburke, jstancek, pbunyan, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-30 16:58:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruno Goncalves 2013-10-02 06:43:38 UTC
Description of problem:

When trying to install the OS on a system booting via iSCSI with 2 session the following error happens.

[   32.230373] systemd-fstab-generator[886]: Failed to create mount unit file /run/systemd/generator/sysroot.mount, as it already exists. Duplicate entry in /etc/fstab?
dracut-initqueue[590]: iscsistart: version 6.2.0.873-14
dracut-initqueue[590]: iscsistart: initiator reported error (15 - session exists)
dracut-initqueue[590]: iscsistart: initiator reported error (15 - session exists)
[  OK  ] Started dracut initqueue hook.
         Starting dracut pre-mount hook...
[  OK  ] Started dracut pre-mount hook.
         Mounting /sysroot...
[FAILED] Failed to mount /sysroot.
See 'systemctl status sysroot.mount' for details.


:/# cat /etc/fstab
/dev/root /sysroot auto ro,x-initrd.mount 0 0
/dev/root /sysroot auto ro,x-initrd.mount 0 0

:/# systemctl status sysroot.mount -l
sysroot.mount - /sysroot
   Loaded: loaded (/etc/fstab)
   Active: failed (Result: exit-code) since Wed 2013-10-02 02:16:52 UTC; 20min ago
    Where: /sysroot
     What: /dev/root
  Process: 925 ExecMount=/bin/mount /dev/root /sysroot -t auto -o ro,x-initrd.mount (code=exited, status=32)

Oct 02 02:16:52 localhost systemd[1]: Mounting /sysroot...
Oct 02 02:16:52 localhost mount[925]: mount: /dev/sdc is already mounted or /sysroot busy
Oct 02 02:16:52 localhost systemd[1]: sysroot.mount mount process exited, code=exited status=32
Oct 02 02:16:52 localhost systemd[1]: Failed to mount /sysroot.
Oct 02 02:16:52 localhost systemd[1]: Unit sysroot.mount entered failed state.


Version-Release number of selected component (if applicable):
systemd-207-2.el7.x86_64
dracut-033-3.el7

How reproducible:
100%

Steps to Reproduce:
1.Try to install a iSCSI boot that has 2 sessions configured

2.Installation fails with error above

Comment 4 David Lehman 2013-10-02 13:17:14 UTC
Is this happening when you try to boot the installer or when you try to reboot after installation has completed?

Comment 5 Bruno Goncalves 2013-10-02 13:53:32 UTC
It happens at the installer, just after the iSCSI disks are connected, then the installation fails.

Comment 6 Harald Hoyer 2013-10-29 11:02:44 UTC
please add "rd.debug" to the kernel command line and attach the console.log again.

Comment 7 Bruno Goncalves 2013-10-30 09:27:13 UTC
The problem seems to be caused by adding rd.iscsi.firmware to kernel command line.

Can it be closed as not a bug?

Comment 8 Harald Hoyer 2013-10-30 16:58:37 UTC

*** This bug has been marked as a duplicate of bug 1024858 ***