{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/mkosi/issues/248","repository_url":"https://api.github.com/repos/systemd/mkosi","labels_url":"https://api.github.com/repos/systemd/mkosi/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/systemd/mkosi/issues/248/comments","events_url":"https://api.github.com/repos/systemd/mkosi/issues/248/events","html_url":"https://github.com/systemd/mkosi/issues/248","id":317916728,"node_id":"MDU6SXNzdWUzMTc5MTY3Mjg=","number":248,"title":"Allow building inside a container","user":{"login":"fabiand","id":83456,"node_id":"MDQ6VXNlcjgzNDU2","avatar_url":"https://avatars1.githubusercontent.com/u/83456?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiand","html_url":"https://github.com/fabiand","followers_url":"https://api.github.com/users/fabiand/followers","following_url":"https://api.github.com/users/fabiand/following{/other_user}","gists_url":"https://api.github.com/users/fabiand/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiand/subscriptions","organizations_url":"https://api.github.com/users/fabiand/orgs","repos_url":"https://api.github.com/users/fabiand/repos","events_url":"https://api.github.com/users/fabiand/events{/privacy}","received_events_url":"https://api.github.com/users/fabiand/received_events","type":"User","site_admin":false},"labels":[{"id":639066842,"node_id":"MDU6TGFiZWw2MzkwNjY4NDI=","url":"https://api.github.com/repos/systemd/mkosi/labels/RFE","name":"RFE","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-26T07:57:28Z","updated_at":"2018-11-26T14:04:34Z","closed_at":null,"author_association":"NONE","body":"It would be nice if mkosi could be launched inside a container to build an image."},"comment":{"url":"https://api.github.com/repos/systemd/mkosi/issues/comments/441649516","html_url":"https://github.com/systemd/mkosi/issues/248#issuecomment-441649516","issue_url":"https://api.github.com/repos/systemd/mkosi/issues/248","id":441649516,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTY0OTUxNg==","user":{"login":"localnet","id":25712886,"node_id":"MDQ6VXNlcjI1NzEyODg2","avatar_url":"https://avatars0.githubusercontent.com/u/25712886?v=4","gravatar_id":"","url":"https://api.github.com/users/localnet","html_url":"https://github.com/localnet","followers_url":"https://api.github.com/users/localnet/followers","following_url":"https://api.github.com/users/localnet/following{/other_user}","gists_url":"https://api.github.com/users/localnet/gists{/gist_id}","starred_url":"https://api.github.com/users/localnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localnet/subscriptions","organizations_url":"https://api.github.com/users/localnet/orgs","repos_url":"https://api.github.com/users/localnet/repos","events_url":"https://api.github.com/users/localnet/events{/privacy}","received_events_url":"https://api.github.com/users/localnet/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T14:04:34Z","updated_at":"2018-11-26T14:04:34Z","author_association":"NONE","body":"When I try to build to a directory (mkosi -t directory) I get this errors:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mkosi\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('mkosi==4', 'mkosi')\r\n  File \"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 741, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 1509, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 3692, in <module>\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 3682, in main\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 3541, in build_stuff\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 3390, in build_image\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 1598, in install_distribution\r\n  File \"/usr/lib64/python3.6/contextlib.py\", line 52, in inner\r\n    return func(*args, **kwds)\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 1470, in install_arch\r\n  File \"/usr/local/lib/python3.6/site-packages/mkosi-4-py3.6.egg/EGG-INFO/scripts/mkosi\", line 1415, in run_pacstrap\r\n  File \"/usr/lib64/python3.6/subprocess.py\", line 418, in run\r\n    output=stdout, stderr=stderr)\r\nsubprocess.CalledProcessError: Command '['pacstrap', '-C', '/home/nspuser/rootfs/.mkosi-q5v25lr9/pacman.conf', '-dGM', '/home/nspuser/rootfs/.mkosi-q5v25lr9/root', 'systemd-sysvcompat', 'util-linux', 'logrotate', 'findutils', 'glibc', 'which', 'nano', 'bash', 'texinfo', 'gettext', 'less', 'linux-firmware', 'iputils', 'grep', 'gzip', 'shadow', 'filesystem', 'procps-ng', 'psmisc', 'gcc-libs', 'pacman', 'pciutils', 'tar', 'diffutils', 'licenses', 'iproute2', 'file', 'perl', 'gawk', 'inetutils', 'usbutils', 'vi', 'bzip2', 'sysfsutils', 'coreutils', 's-nail', 'sed']' returned non-zero exit status 1.\r\n```\r\n\r\nI am using too Docker 42bv/mkosi:latest (Full log: https://travis-ci.org/localnet/nspawnci-mkosi)"}}
{"actor":{"display_login":"localnet"}}