{"action":"created","issue":{"url":"https://api.github.com/repos/machinekit/machinekit/issues/447","labels_url":"https://api.github.com/repos/machinekit/machinekit/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/machinekit/machinekit/issues/447/comments","events_url":"https://api.github.com/repos/machinekit/machinekit/issues/447/events","html_url":"https://github.com/machinekit/machinekit/issues/447","id":54647100,"number":447,"title":"Post install script breaks Debian policy (and RCN build scripts)","user":{"login":"cdsteinkuehler","id":1993109,"avatar_url":"https://avatars.githubusercontent.com/u/1993109?v=3","gravatar_id":"","url":"https://api.github.com/users/cdsteinkuehler","html_url":"https://github.com/cdsteinkuehler","followers_url":"https://api.github.com/users/cdsteinkuehler/followers","following_url":"https://api.github.com/users/cdsteinkuehler/following{/other_user}","gists_url":"https://api.github.com/users/cdsteinkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/cdsteinkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdsteinkuehler/subscriptions","organizations_url":"https://api.github.com/users/cdsteinkuehler/orgs","repos_url":"https://api.github.com/users/cdsteinkuehler/repos","events_url":"https://api.github.com/users/cdsteinkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/cdsteinkuehler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/machinekit/machinekit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-17T02:13:52Z","updated_at":"2015-01-17T04:24:07Z","closed_at":null,"body":"I am having problems generating a Machinekit image with the RCN build scripts because the postinst script violates Debian policy.  The postinst script is directly calling init scripts to restart logging when it should be using the invoke-rc.d abstraction layer:\r\n\r\nhttps://github.com/machinekit/machinekit/blob/master/debian/machinekit.postinst#L22\r\n\r\nhttps://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3\r\n\r\nThis causes the host OS logging daemon to restart when running in a chroot, which then prevents the chroot from unmounting properly (open files) and chaos ensues.  If the proper abstractions were being used, the request to restart the logging daemon would be ignored when inside the chroot, and all would be well with (this tiny little part of) the world."},"comment":{"url":"https://api.github.com/repos/machinekit/machinekit/issues/comments/70354126","html_url":"https://github.com/machinekit/machinekit/issues/447#issuecomment-70354126","issue_url":"https://api.github.com/repos/machinekit/machinekit/issues/447","id":70354126,"user":{"login":"cdsteinkuehler","id":1993109,"avatar_url":"https://avatars.githubusercontent.com/u/1993109?v=3","gravatar_id":"","url":"https://api.github.com/users/cdsteinkuehler","html_url":"https://github.com/cdsteinkuehler","followers_url":"https://api.github.com/users/cdsteinkuehler/followers","following_url":"https://api.github.com/users/cdsteinkuehler/following{/other_user}","gists_url":"https://api.github.com/users/cdsteinkuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/cdsteinkuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdsteinkuehler/subscriptions","organizations_url":"https://api.github.com/users/cdsteinkuehler/orgs","repos_url":"https://api.github.com/users/cdsteinkuehler/repos","events_url":"https://api.github.com/users/cdsteinkuehler/events{/privacy}","received_events_url":"https://api.github.com/users/cdsteinkuehler/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T04:24:07Z","updated_at":"2015-01-17T04:24:07Z","body":"You also need to craft a /usr/sbin/policy-rc.d script in your chroot.  For an example see: https://wiki.debian.org/chroot#Configuration"}}