{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/brickstrap/issues/28","labels_url":"https://api.github.com/repos/ev3dev/brickstrap/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/brickstrap/issues/28/comments","events_url":"https://api.github.com/repos/ev3dev/brickstrap/issues/28/events","html_url":"https://github.com/ev3dev/brickstrap/pull/28","id":126802155,"number":28,"title":"Extract common code, and cleanup various directory paths.","user":{"login":"cmacq2","id":13215950,"avatar_url":"https://avatars.githubusercontent.com/u/13215950?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacq2","html_url":"https://github.com/cmacq2","followers_url":"https://api.github.com/users/cmacq2/followers","following_url":"https://api.github.com/users/cmacq2/following{/other_user}","gists_url":"https://api.github.com/users/cmacq2/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacq2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacq2/subscriptions","organizations_url":"https://api.github.com/users/cmacq2/orgs","repos_url":"https://api.github.com/users/cmacq2/repos","events_url":"https://api.github.com/users/cmacq2/events{/privacy}","received_events_url":"https://api.github.com/users/cmacq2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-15T03:40:55Z","updated_at":"2016-01-20T19:23:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ev3dev/brickstrap/pulls/28","html_url":"https://github.com/ev3dev/brickstrap/pull/28","diff_url":"https://github.com/ev3dev/brickstrap/pull/28.diff","patch_url":"https://github.com/ev3dev/brickstrap/pull/28.patch"},"body":"This change introduces the new brickstrap-argv.sh module.\r\n\r\nChanges:\r\n\r\n - Change the -d option to be 'destdir' as opposed to 'rootfs' directory.\r\n   All output of brickstrap should now be generated as files or subdirectorys located within the given 'destdir'.\r\n - Extract common option parsing code into utility functions\r\n - Re-organise brickstrap artefacts inside rootfs/chroot.\r\n   Artefacts like tar-only directory or tar-exclude file are now confined to a 'brickstrap' directory hierarchy.\r\n   This way there is a lot less arbitrary poking inside the rootfs going on.\r\n - Introduce 'images' directory for storing rootfs image files.\r\n   This paves the way for generating multiple images with arbitrary partition layouts.\r\n - Introduce -I option to specify image base name.\r\n   By default the basename of 'destdir' is used with an appended timestamp.\r\n - Introduce getter function to lookup various paths, and base paths.\r\n - Remove numerous globally namespaced variables, notably ROOTDIR.\r\n   (There are 'getter' functions which provide same information more safely now).\r\n - Introduce -P option for blacklisting individual packages.\r\n   This is a more convenient alternative to BLACKLIST_PACKAGES\r\n - Introduce -B option for blacklisting entire package files.\r\n   This is a more convenient alternative to BLACKLIST_PACKAGE_FILES\r\n - Update brickstrap-utils.sh module to take advantage of the changes.\r\n - Update brickstrap.sh to take advantage the changes.\r\n - Fix image generation logic to not require a temporary file + mv step, to avoid name clashes.\r\n\r\nThis change resolves issue #26 (through destdir):\r\nhttps://github.com/ev3dev/brickstrap/issues/26\r\n\r\nSee also:\r\nhttps://github.com/ev3dev/brickstrap/pull/23#discussion_r49371653"},"comment":{"url":"https://api.github.com/repos/ev3dev/brickstrap/issues/comments/173331502","html_url":"https://github.com/ev3dev/brickstrap/pull/28#issuecomment-173331502","issue_url":"https://api.github.com/repos/ev3dev/brickstrap/issues/28","id":173331502,"user":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:23:18Z","updated_at":"2016-01-20T19:23:18Z","body":"> Any particular letters in mind?\r\n\r\nHow about `-x` to exclude a single package and `-X` to exclude a package list file?"}}