{"action":"created","issue":{"url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/355","labels_url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/355/comments","events_url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/355/events","html_url":"https://github.com/debian-pi/raspbian-ua-netinst/issues/355","id":125784609,"number":355,"title":"disabling services in post-install.txt","user":{"login":"aristosv","id":528302,"avatar_url":"https://avatars.githubusercontent.com/u/528302?v=3","gravatar_id":"","url":"https://api.github.com/users/aristosv","html_url":"https://github.com/aristosv","followers_url":"https://api.github.com/users/aristosv/followers","following_url":"https://api.github.com/users/aristosv/following{/other_user}","gists_url":"https://api.github.com/users/aristosv/gists{/gist_id}","starred_url":"https://api.github.com/users/aristosv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristosv/subscriptions","organizations_url":"https://api.github.com/users/aristosv/orgs","repos_url":"https://api.github.com/users/aristosv/repos","events_url":"https://api.github.com/users/aristosv/events{/privacy}","received_events_url":"https://api.github.com/users/aristosv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-09T22:09:55Z","updated_at":"2016-01-11T16:49:05Z","closed_at":null,"body":"What is the proper way of using \"systemctl\" in post-install.txt? I want to disable a couple of services, and used the code below in post-install.txt, but the services were not disabled.\r\n```\r\necho -n \"Disabling Services...\"\r\n  chroot /rootfs /bin/systemctl disable systemd-random-seed\r\n  chroot /rootfs /bin/systemctl disable systemd-readahead-collect\r\necho \"OK\"\r\n```"},"comment":{"url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/comments/170614571","html_url":"https://github.com/debian-pi/raspbian-ua-netinst/issues/355#issuecomment-170614571","issue_url":"https://api.github.com/repos/debian-pi/raspbian-ua-netinst/issues/355","id":170614571,"user":{"login":"diederikdehaas","id":2184351,"avatar_url":"https://avatars.githubusercontent.com/u/2184351?v=3","gravatar_id":"","url":"https://api.github.com/users/diederikdehaas","html_url":"https://github.com/diederikdehaas","followers_url":"https://api.github.com/users/diederikdehaas/followers","following_url":"https://api.github.com/users/diederikdehaas/following{/other_user}","gists_url":"https://api.github.com/users/diederikdehaas/gists{/gist_id}","starred_url":"https://api.github.com/users/diederikdehaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diederikdehaas/subscriptions","organizations_url":"https://api.github.com/users/diederikdehaas/orgs","repos_url":"https://api.github.com/users/diederikdehaas/repos","events_url":"https://api.github.com/users/diederikdehaas/events{/privacy}","received_events_url":"https://api.github.com/users/diederikdehaas/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T16:49:05Z","updated_at":"2016-01-11T16:49:05Z","body":"> both services are there on a stock system\r\n\r\nAh ok, I checked it on my Debian Sid machine and didn't have it there.\r\n\r\n> People will want to enable/disable services or install extra packages, unless we can figure out how to do that \"pre-first-boot\".\r\n\r\nI'm not convinced _we_ should provide/implement that.\r\nIf you want to install packages/services, you can do so via the `packages` parameter. If you want to disable a service, you shouldn't install the service in the first place. And ppl can further customize it through `post-install.txt`.\r\n\r\nAs for the 2 specifically mentioned services, I think it would be VERY unwise to disable it. \r\nSee [here](http://www.freedesktop.org/software/systemd/man/systemd-random-seed.service.html), [here](http://www.unix.com/man-page/all/8/systemd-readahead-collect.service/) and [here](https://raspberrypi.stackexchange.com/questions/2053/would-systemd-readahead-be-beneficial-to-a-sd-card) as to why it's very beneficial to systems in general and the Pi particularly.\r\n\r\nAnd then there's the thing that when we start to provide support for post-install things, where does it end? And if you do that you should support wheezy, jessie (and stretch) and also with sysv-init, systemd and upstart and also in every combination. Sounds like a dangerous path to go down to.\r\n\r\nOf course I/we would consider Pull Requests implementing that :wink: "}}