{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/kiwi/issues/621","repository_url":"https://api.github.com/repos/openSUSE/kiwi","labels_url":"https://api.github.com/repos/openSUSE/kiwi/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/kiwi/issues/621/comments","events_url":"https://api.github.com/repos/openSUSE/kiwi/issues/621/events","html_url":"https://github.com/openSUSE/kiwi/issues/621","id":191720138,"number":621,"title":"Wrong mount order when specifing nested mount points in LVM groups","user":{"login":"davidcassany","id":6428768,"avatar_url":"https://avatars.githubusercontent.com/u/6428768?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcassany","html_url":"https://github.com/davidcassany","followers_url":"https://api.github.com/users/davidcassany/followers","following_url":"https://api.github.com/users/davidcassany/following{/other_user}","gists_url":"https://api.github.com/users/davidcassany/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcassany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcassany/subscriptions","organizations_url":"https://api.github.com/users/davidcassany/orgs","repos_url":"https://api.github.com/users/davidcassany/repos","events_url":"https://api.github.com/users/davidcassany/events{/privacy}","received_events_url":"https://api.github.com/users/davidcassany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-25T15:05:49Z","updated_at":"2016-11-25T16:43:46Z","closed_at":null,"body":"If several partitions are defined for a _vmx_ image and they contain nested mount points, as in the `systemdisk` configuration shown below, `/var/log` get mounted before `/var`. Apparently this is due to the names, as the volume attributes are stored in a HASH where the key for each volume is the volume name. Then looping over that HASH results in an alphabetical order which ends up also setting the mount order.\r\n\r\n```xml\r\n<systemdisk name=\"vg0\">\r\n  <volume name=\"@root\" size=\"4G\"/>\r\n  <volume name=\"LVhome\" size=\"1G\" mountpoint=\"home\"/>\r\n  <volume name=\"LVtmp\" size=\"2G\" mountpoint=\"tmp\"/>\r\n  <volume name=\"LVopt\" size=\"1G\" mountpoint=\"opt\"/>\r\n  <volume name=\"LVvar\" size=\"2G\" mountpoint=\"var\"/>\r\n  <volume name=\"LVlog\" size=\"2G\" mountpoint=\"var/log\"/>\r\n</systemdisk>\r\n```\r\n\r\nThe user should not have to care about that, mount should happen in appropriate order."},"comment":{"url":"https://api.github.com/repos/openSUSE/kiwi/issues/comments/262994500","html_url":"https://github.com/openSUSE/kiwi/issues/621#issuecomment-262994500","issue_url":"https://api.github.com/repos/openSUSE/kiwi/issues/621","id":262994500,"user":{"login":"davidcassany","id":6428768,"avatar_url":"https://avatars.githubusercontent.com/u/6428768?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcassany","html_url":"https://github.com/davidcassany","followers_url":"https://api.github.com/users/davidcassany/followers","following_url":"https://api.github.com/users/davidcassany/following{/other_user}","gists_url":"https://api.github.com/users/davidcassany/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcassany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcassany/subscriptions","organizations_url":"https://api.github.com/users/davidcassany/orgs","repos_url":"https://api.github.com/users/davidcassany/repos","events_url":"https://api.github.com/users/davidcassany/events{/privacy}","received_events_url":"https://api.github.com/users/davidcassany/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T16:43:46Z","updated_at":"2016-11-25T16:43:46Z","body":"Thanks I will have a look at that code. There might be a bug somewhere because, I certainly had to rename volumes to get the above configuration mounted properly."}}
{"actor":{"display_login":"davidcassany"}}