Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous stage rootfs not found #166

Open
cburlacu opened this issue Mar 19, 2018 · 7 comments
Open

Previous stage rootfs not found #166

cburlacu opened this issue Mar 19, 2018 · 7 comments

Comments

@cburlacu
Copy link

cburlacu commented Mar 19, 2018

One cannot skip an intermediary stage.
A possible solution is to move the line
PREV_ROOTFS_DIR="${ROOTFS_DIR}"
inside the if [ ! -f SKIP ] statement

@fdaugs
Copy link

fdaugs commented Mar 28, 2018

I had the same problem. My fix was to rename the latest folder in the 'work' directory to the current date. So the issue was probably caused by the script searching for a folder with the current date. I'm not sure, wether it is an intended behavior.

@xoronet
Copy link

xoronet commented Apr 6, 2018

Unfortunately the same problem is described in #176

@david-kohen
Copy link

See my comment in #176 about adding a stage2a

@rtgoodwin
Copy link

As a newb to the project, the find-rootfs-by-date mechanism definitely bites you when working with your own stages (to keep future base merges clean) and it takes you multiple days to get something done. (Right now it always takes me at least a couple of days, and several iterations, since I'm still learning.

Dozens of ways to fix it, just voting for some option. Even something as simple as adding an optional env var in the config for "IMG_BUILD_DATE" or similar to tell copy_previous where to look for rootfs. If that's something that would be accepted I can contribute that.

@XECDesign
Copy link
Member

XECDesign commented Oct 24, 2018

A stupid workaround I use is something like "IMG_DATE=2017-03-02", which should work.

@rtgoodwin
Copy link

rtgoodwin commented Oct 24, 2018 via email

@andig
Copy link
Contributor

andig commented Mar 17, 2019

@XECDesign just hit the same stopper. Problem is that the IMG_DATE does't carry into the docker build:

CONTINUE=1 PRESERVE_CONTAINER=1 IMG_DATE=2019-03-11 ./build-docker.sh

gives:

[16:53:08] Begin /pi-gen
[16:53:08] Begin /pi-gen/stage0
[16:53:08] End /pi-gen/stage0
[16:53:08] Begin /pi-gen/stage1
[16:53:08] End /pi-gen/stage1
[16:53:08] Begin /pi-gen/stage2
[16:53:08] End /pi-gen/stage2
[16:53:08] Begin /pi-gen/volkszaehler
[16:53:08] Begin /pi-gen/volkszaehler/prerun.sh
>> /pi-gen/work/2019-03-17-volkszaehler/stage2/rootfs
Previous stage rootfs not found

It should be noted that the IMG_DATE needs to go into config, not on the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants