{"action":"closed","issue":{"url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/143","repository_url":"https://api.github.com/repos/RPi-Distro/pi-gen","labels_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/143/comments","events_url":"https://api.github.com/repos/RPi-Distro/pi-gen/issues/143/events","html_url":"https://github.com/RPi-Distro/pi-gen/issues/143","id":285309804,"number":143,"title":"Continuing dockerized build fails with `Previous stage rootfs not found`","user":{"login":"andig","id":184815,"avatar_url":"https://avatars1.githubusercontent.com/u/184815?v=4","gravatar_id":"","url":"https://api.github.com/users/andig","html_url":"https://github.com/andig","followers_url":"https://api.github.com/users/andig/followers","following_url":"https://api.github.com/users/andig/following{/other_user}","gists_url":"https://api.github.com/users/andig/gists{/gist_id}","starred_url":"https://api.github.com/users/andig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andig/subscriptions","organizations_url":"https://api.github.com/users/andig/orgs","repos_url":"https://api.github.com/users/andig/repos","events_url":"https://api.github.com/users/andig/events{/privacy}","received_events_url":"https://api.github.com/users/andig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-01-01T14:20:44Z","updated_at":"2018-03-05T15:35:12Z","closed_at":"2018-03-05T15:35:12Z","author_association":"CONTRIBUTOR","body":"I'm trying to develop a custom build using the docker infrastructure:\r\n\r\n  - removed stages 3-5\r\n  - removed stage2/EXPORT*\r\n  - added custom stage 3\r\n\r\nInitial build ran fine:\r\n\r\n\tcopying results from deploy/\r\n\ttotal 866288\r\n\tdrwxr-xr-x   5 andig  staff   160B 31 Dec 16:46 .\r\n\tdrwxr-xr-x  26 andig  staff   832B 31 Dec 15:37 ..\r\n\t-rw-r--r--   1 andig  staff    60K 31 Dec 16:46 2017-12-31-Raspbian-volkszaehler.info\r\n\t-rw-r--r--   1 andig  staff   6.0K 31 Dec 16:46 build.log\r\n\t-rw-r--r--   1 andig  staff   420M 31 Dec 16:46 image_2017-12-31-Raspbian-volkszaehler.zip\r\n\tpigen_work\r\n\tDone! Your image(s) should be in deploy/\r\n\r\nNow I've added `SKIP` to stages 0..2, made changes to stage 3 and re-ran which failed:\r\n\r\n\t❯ touch stage2/SKIP\r\n\t❯ touch stage1/SKIP\r\n\t❯ touch stage0/SKIP\r\n\r\n\r\n\t❯ CLEAN=1 ./build-docker.sh\r\n\tSending build context to Docker daemon  3.002MB\r\n\tStep 1/5 : FROM debian:stretch\r\n\t ---> da653cee0545\r\n\tStep 2/5 : ENV DEBIAN_FRONTEND noninteractive\r\n\t ---> Using cache\r\n\t ---> aca0071a24c5\r\n\tStep 3/5 : RUN apt-get -y update &&     apt-get -y install         git vim parted         quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools         bsdtar libcap2-bin rsync grep udev xz-utils curl xxd php7.0     && rm -rf /var/lib/apt/lists/*\r\n\t ---> Using cache\r\n\t ---> ebcbbfec4a21\r\n\tStep 4/5 : COPY . /pi-gen/\r\n\t ---> 298996574d76\r\n\tStep 5/5 : VOLUME /pi-gen/work /pi-gen/deploy\r\n\t ---> Running in 1f76a5ca87ba\r\n\t ---> c2da159b6b6e\r\n\tRemoving intermediate container 1f76a5ca87ba\r\n\tSuccessfully built c2da159b6b6e\r\n\tSuccessfully tagged pi-gen:latest\r\n\tupdate-binfmts: warning: qemu-aarch64 already enabled in kernel.\r\n\t[17:05:20] Begin /pi-gen\r\n\t[17:05:20] Begin /pi-gen/stage0\r\n\t[17:05:20] End /pi-gen/stage0\r\n\t[17:05:20] Begin /pi-gen/stage1\r\n\t[17:05:20] End /pi-gen/stage1\r\n\t[17:05:20] Begin /pi-gen/stage2\r\n\t[17:05:20] End /pi-gen/stage2\r\n\t[17:05:20] Begin /pi-gen/stage3\r\n\t[17:05:20] Begin /pi-gen/stage3/prerun.sh\r\n\tPrevious stage rootfs not found\r\n\r\nIs this potentially because the container has been updated meanwhile (I have a `prepare.sh` script in `.` that I'm changing)? Or is the use of `CLEAN=1` invalid in this case?\r\n\r\nIf not- what else could lead to rootfs not being found when tweaking an existing build?\r\n\r\n"}}
{"actor":{"display_login":"XECDesign"}}