Closed Siecje closed 7 months ago
I think this issue was due to caching the build.
How do you rebuild everything?
I'm not able to remove everything from work/
.
To work around this I am been cloning the directory
cd ..
git clone pi-gen/ pi2
# then later
git clone pi2/ pi3
To do a clean build, run it with CLEAN=1.
Trying to delete work after a failed build is going to end badly. It would still have mountpoints from the chroot steps (/proc, /sys, /dev/ and so on), so you end deleting things you need for your host OS to work. If you've tried to do that, you should reboot.
To do it properly, unmount everything under the work directory first, check if you have any .img files attached to any loopback devices and detach those.
At some point, I need to remove this particular foot shotgun from pi-gen and make sure that it leaves the system free of extra mountpoints and loopback devices.
I'm using
FIRST_USER_NAME
andDISABLE_FIRST_BOOT_USER_RENAME=1
to ensure a user is created.Should I keep the default and create the new user in one of the stages?
sudo ./build.sh
It seems to be this line. https://github.com/RPi-Distro/pi-gen/blob/165e9602376b1ee25d8599389e5ae5643dd9754c/stage2/01-sys-tweaks/01-run.sh#L53
config
I have removed some of the default packages. These are the packages that I've kept.