{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/2344","labels_url":"https://api.github.com/repos/systemd/systemd/issues/2344/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/2344/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/2344/events","html_url":"https://github.com/systemd/systemd/issues/2344","id":127089897,"number":2344,"title":"fstab-generator questions","user":{"login":"nmartensen","id":16715246,"avatar_url":"https://avatars.githubusercontent.com/u/16715246?v=3","gravatar_id":"","url":"https://api.github.com/users/nmartensen","html_url":"https://github.com/nmartensen","followers_url":"https://api.github.com/users/nmartensen/followers","following_url":"https://api.github.com/users/nmartensen/following{/other_user}","gists_url":"https://api.github.com/users/nmartensen/gists{/gist_id}","starred_url":"https://api.github.com/users/nmartensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmartensen/subscriptions","organizations_url":"https://api.github.com/users/nmartensen/orgs","repos_url":"https://api.github.com/users/nmartensen/repos","events_url":"https://api.github.com/users/nmartensen/events{/privacy}","received_events_url":"https://api.github.com/users/nmartensen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/fstab-generator","name":"fstab-generator","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T11:45:37Z","updated_at":"2016-01-26T21:57:29Z","closed_at":null,"body":"A few questions came up while reading the fstab-generator code:\r\n * If `add_sysroot_mount()` returns an error, then `add_sysroot_usr_mount()` will not be called, meaning the error does modify what the code does after that. However, subsequent errors from either `add_sysroot_usr_mount()` or `parse_fstab()` do not have any effect on the code flow and only affect the exit code. Should errors be treated consistently? If yes, stop at first error or always keep going?\r\n * Some comments to the documentation:\r\n\r\n   > rd.fstab= is honored only by initial RAM disk (initrd) while fstab= is honored by both the main system and the initrd.\r\n\r\n   I am not sure if the `rd.fstab=` is really ignored in the main system.\r\n\r\n   > root= is honored by the initrd.\r\n\r\n   Indeed. If I understand correctly, it is also required if you have an initrd.\r\n\r\n   > Otherwise, this parameter defaults to the /usr entry found in /etc/fstab on the root filesystem.\r\n\r\n   This is mentioned for all three of the `mount.usr*` parameters. In other words, these parameters can be used to override the entire /usr entry in fstab (if there is one), but not to override only parts of the entry.\r\n * What is the rationale behind using the `root=` value as default for the `mount.usr` parameter? Is there a use case where / and /usr are separate mounts, but share the same filesystem, only with different fstype and/or options? Should the presence of the `mount.usr` parameter be prerequisite for respecting any of the other two?"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/175250524","html_url":"https://github.com/systemd/systemd/issues/2344#issuecomment-175250524","issue_url":"https://api.github.com/repos/systemd/systemd/issues/2344","id":175250524,"user":{"login":"nmartensen","id":16715246,"avatar_url":"https://avatars.githubusercontent.com/u/16715246?v=3","gravatar_id":"","url":"https://api.github.com/users/nmartensen","html_url":"https://github.com/nmartensen","followers_url":"https://api.github.com/users/nmartensen/followers","following_url":"https://api.github.com/users/nmartensen/following{/other_user}","gists_url":"https://api.github.com/users/nmartensen/gists{/gist_id}","starred_url":"https://api.github.com/users/nmartensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmartensen/subscriptions","organizations_url":"https://api.github.com/users/nmartensen/orgs","repos_url":"https://api.github.com/users/nmartensen/repos","events_url":"https://api.github.com/users/nmartensen/events{/privacy}","received_events_url":"https://api.github.com/users/nmartensen/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T21:57:29Z","updated_at":"2016-01-26T21:57:29Z","body":"Further reading reveals that yes, `rd.fstab=` is really ignored in the main system."}}