)]}'
{"elements/base/environment.d/10-dib-init-system.bash":[{"author":{"_account_id":7419,"name":"Imre Farkas","email":"farkas.imre@gmail.com","username":"ifarkas"},"change_message_id":"b9a56c32325a55f77c14cb721443a0f712e76a24","unresolved":false,"context_lines":[{"line_number":1,"context_line":"if [ -n \"$(which dib-init-system)\" ]; then"},{"line_number":2,"context_line":"    export DIB_INIT_SYSTEM\u003d$(dib-init-system)"},{"line_number":3,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAATn%2F8r7w%3D","line":3,"updated":"2013-12-23 08:11:04.000000000","message":"To avoid the superfluous error output, you can use something like this:\ncommand -v dib-init-system \u003e/dev/null \u0026\u0026 { export DIB_INIT_SYSTEM\u003d$(dib-init-system) }","commit_id":"765d5f8f3848f0332bef23153e72eaed44aead13"},{"author":{"_account_id":7761,"name":"Jun Jie Nan","email":"nanjunjie@gmail.com","username":"nanjj"},"change_message_id":"0cdc278f840a4e4cb27b91cdaa24127b14d1571c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"if [ -n \"$(which dib-init-system)\" ]; then"},{"line_number":2,"context_line":"    export DIB_INIT_SYSTEM\u003d$(dib-init-system)"},{"line_number":3,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"AAAATn%2F8rvc%3D","line":3,"in_reply_to":"AAAATn%2F8r7w%3D","updated":"2013-12-23 09:22:31.000000000","message":"Done","commit_id":"765d5f8f3848f0332bef23153e72eaed44aead13"},{"author":{"_account_id":6849,"name":"Roman Podoliaka","email":"roman.podoliaka@gmail.com","username":"rpodolyaka"},"change_message_id":"e34bf4f1da46a273cff70aa11d5bc58569ba47ad","unresolved":false,"context_lines":[{"line_number":1,"context_line":"command -v dib-init-system \u003e /dev/null \u0026\u0026"},{"line_number":2,"context_line":"export DIB_INIT_SYSTEM\u003d$(dib-init-system)"}],"source_content_type":"text/x-sh","patch_set":2,"id":"AAAAT3%2F%2F8%2Bo%3D","line":1,"updated":"2013-12-26 12:27:54.000000000","message":"So the problem here is that this file is sourced before install.d and pre-install.d steps have been executed and dib-init-system script hasn\u0027t been installed to PATH yet. However, I don\u0027t think silencing the error message here is a good idea.\n\nCan we use something like this instead?\n\nexport DIB_INIT_SYSTEM\u003d$(/tmp/in_target.d/dib-init-system)\n\nFrom what I see, 10-dib-init-system.bash is sourced only after hooks/elements data files are collected and chroot is done. Please, someone correct me if I\u0027m wrong.","commit_id":"807e506af468227b38202555ced06033220b10a1"},{"author":{"_account_id":7582,"name":"Jan Provaznik","email":"jan.provaznik@gmail.com","username":"jprovazn"},"change_message_id":"7a9295be562edc7a7d6bb657a7e94d137604f242","unresolved":false,"context_lines":[{"line_number":1,"context_line":"command -v dib-init-system \u003e /dev/null \u0026\u0026"},{"line_number":2,"context_line":"export DIB_INIT_SYSTEM\u003d$(dib-init-system)"}],"source_content_type":"text/x-sh","patch_set":2,"id":"AAAAT3%2F%2FwXM%3D","line":1,"in_reply_to":"AAAAT3%2F%2F8%2Bo%3D","updated":"2014-01-02 09:53:53.000000000","message":"This solution looks better to me.","commit_id":"807e506af468227b38202555ced06033220b10a1"},{"author":{"_account_id":6449,"name":"Chris Jones","email":"cmsj@tenshu.net","username":"cmsj"},"change_message_id":"f6d334668247399c1039f3446023f704b2650ac0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"command -v dib-init-system \u003e /dev/null \u0026\u0026"},{"line_number":2,"context_line":"export DIB_INIT_SYSTEM\u003d$(dib-init-system)"}],"source_content_type":"text/x-sh","patch_set":2,"id":"AAAAT3%2F%2Fu%2FY%3D","line":1,"in_reply_to":"AAAAT3%2F%2FwXM%3D","updated":"2014-01-02 17:51:10.000000000","message":"I think it\u0027s kind of ugly, but it seems to me that it would be better to have DIB_INIT_SYSTEM contain a reasonable value, than to not be present, so I would be ok with switching to that.","commit_id":"807e506af468227b38202555ced06033220b10a1"},{"author":{"_account_id":1726,"name":"Ghe Rivero","email":"ghe.rivero@gmail.com","username":"ghe.rivero"},"change_message_id":"6bb1dc0f4925ecccd4a0d1a32e9beececf294af4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"export DIB_INIT_SYSTEM\u003d$($(dirname $BASH_SOURCE)/../dib-init-system)"}],"source_content_type":"text/x-sh","patch_set":3,"id":"AAAAT3%2F%2Fso0%3D","line":1,"updated":"2014-01-03 09:23:56.000000000","message":"This fix the issue before the command is installed, and works after that, but doesn\u0027t look very clean for this last case. I have my doubts about it.","commit_id":"497ca84ef1addbbd35051c29e57196efc75faa63"},{"author":{"_account_id":7761,"name":"Jun Jie Nan","email":"nanjunjie@gmail.com","username":"nanjj"},"change_message_id":"c5278ff0cbb573f2d4ba27cee60810b8637b1c03","unresolved":false,"context_lines":[{"line_number":1,"context_line":"export DIB_INIT_SYSTEM\u003d$($(dirname $BASH_SOURCE)/../dib-init-system)"}],"source_content_type":"text/x-sh","patch_set":3,"id":"AAAAT3%2F%2Fslc%3D","line":1,"in_reply_to":"AAAAT3%2F%2Fso0%3D","updated":"2014-01-03 09:41:49.000000000","message":"Check another solution.","commit_id":"497ca84ef1addbbd35051c29e57196efc75faa63"}]}
