Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqubes-mount-dir not starting in R3.2 - noauto absent from fstab #2612
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 30, 2017
Member
/usr/lib/qubes/init/mount-dirs.sh is responsible for mounting /rw. I guess in Archlinux some other entity also mount it. Is "noauto" option missing in /etc/fstab.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ptitdoc
Jan 30, 2017
No, noauto is not enabled for /rw. I'm trying to enable it.
Probably sometimes archlinux manages to mount it before through fstab generator. Maybe we can enforce the qubes-mount-dir service to be started before the fstab generator mount target ?
$ qvm-run --pass-io mybrokenvm 'sudo cat /etc/fstab'
su: warning: cannot change directory to /home/user: No such file or directory
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# Qubes Agents
xen /proc/xen xenfs defaults 0 0
# Template Directories
/dev/mapper/dmroot / ext4 defaults,noatime 1 1
/dev/xvdb /rw ext4 defaults,noatime 1 2
/dev/xvdc1 swap swap defaults 0 0
# Template Binds
/rw/home /home none noauto,bind,defaults 0 0
# Custom settings
tmpfs /tmp tmpfs nodev,nosuid,size=1G 0 0
ptitdoc
commented
Jan 30, 2017
|
No, noauto is not enabled for /rw. I'm trying to enable it. Probably sometimes archlinux manages to mount it before through fstab generator. Maybe we can enforce the qubes-mount-dir service to be started before the fstab generator mount target ?
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 30, 2017
Member
See here for reference fstab: https://github.com/QubesOS/qubes-core-agent-linux/blob/master/misc/fstab
|
See here for reference fstab: https://github.com/QubesOS/qubes-core-agent-linux/blob/master/misc/fstab |
andrewdavidwong
added
bug
C: templates
labels
Jan 30, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Jan 30, 2017
pushed a commit
to ptitdoc/qubes-builder-archlinux
that referenced
this issue
Feb 3, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ptitdoc
Feb 3, 2017
This should be at least fixed in new templates.
I however like to see it fixed through systemd dependencies. I will test such a fix if I found the time.
ptitdoc
commented
Feb 3, 2017
|
This should be at least fixed in new templates. I however like to see it fixed through systemd dependencies. I will test such a fix if I found the time. |
ptitdoc
changed the title from
Update cause qubes-mount-dir to not start in R3.2 archlinux template (continued discussion of issue #2609)
to
Update cause qubes-mount-dir to not start in R3.2 archlinux template - noauto (continued discussion of issue #2609)
Feb 10, 2017
ptitdoc
changed the title from
Update cause qubes-mount-dir to not start in R3.2 archlinux template - noauto (continued discussion of issue #2609)
to
Update cause qubes-mount-dir to not start in R3.2 - noauto absent from fstab
Feb 10, 2017
ptitdoc
referenced this issue
Feb 10, 2017
Open
[Arch Linux] qubes-mount-dir not starting start in R3.2 - chgrp on absolute symlinks #2625
ptitdoc
changed the title from
Update cause qubes-mount-dir to not start in R3.2 - noauto absent from fstab
to
qubes-mount-dir to not start in R3.2 - noauto absent from fstab
Feb 10, 2017
ptitdoc
changed the title from
qubes-mount-dir to not start in R3.2 - noauto absent from fstab
to
qubes-mount-dir not starting in R3.2 - noauto absent from fstab
Feb 10, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ptitdoc
Feb 10, 2017
The strange thing is that a dependency has been properly added for rw.mount and home.mount. This dependency is apparently not enforced by systemd:
https://github.com/QubesOS/qubes-core-agent-linux/blob/master/vm-systemd/qubes-mount-dirs.service
ptitdoc
commented
Feb 10, 2017
|
The strange thing is that a dependency has been properly added for rw.mount and home.mount. This dependency is apparently not enforced by systemd: https://github.com/QubesOS/qubes-core-agent-linux/blob/master/vm-systemd/qubes-mount-dirs.service |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ptitdoc
Feb 10, 2017
Maybe we have to reference rw.automount home.automount instead ? I'm currently not able to reproduce the bug, so I cannot verify this fact.
One option would also be adding Conflicts with home.automount and rw.automount.
ptitdoc
commented
Feb 10, 2017
•
|
Maybe we have to reference rw.automount home.automount instead ? I'm currently not able to reproduce the bug, so I cannot verify this fact. |
ptitdoc commentedJan 30, 2017
Qubes OS version (e.g.,
R3.2):R3.2
Affected TemplateVMs (e.g.,
fedora-23, if applicable):archlinux
Expected behavior:
Template boot properly with last qubes-agent
Actual behavior:
Template boots but qubes-mount-dirs does not start. Because of that /home/ is empty and gui-agent fails
Steps to reproduce the behavior:
This problem occurs sometimes, without any identified reason. This may be a race condition. This has also been observed by @cryptix in issue #2609.
General notes:
Related issues:
#2609