RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.6k stars 1.62k forks source link

Builds fail on RPi 3B+ with Buster #294

Closed dlabun closed 4 years ago

dlabun commented 5 years ago

I pulled the latest copy of the pi-gen project and builds are not completing due to missing file / folder issues. I assume this must be related to the move to Buster. This was run on a RPi 3B+ with a clean copy of Raspbian I just downloaded from the RPi website.

`pi@raspberrypi:~/pi-gen-master $ sudo bash build.sh
[11:43:34] Begin /home/pi/pi-gen-master
[11:43:34] Begin /home/pi/pi-gen-master/stage0
[11:43:34] Begin /home/pi/pi-gen-master/stage0/prerun.sh
I: Target architecture can be executed
I: Retrieving InRelease 
I: Checking Release signature
I: Valid Release signature (key id A0DA38D0D76E8B5D638872819165938D90FDDD2E)
I: Retrieving Packages 
I: Validating Packages 
I: Retrieving Packages 
I: Validating Packages 
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://raspbian.raspberrypi.org/raspbian...
I: Retrieving adduser 3.118
I: Validating adduser 3.118
I: Retrieving apt 1.8.2
I: Validating apt 1.8.2
I: Retrieving apt-utils 1.8.2
I: Validating apt-utils 1.8.2
I: Retrieving base-files 10.3+rpi1
I: Validating base-files 10.3+rpi1
I: Retrieving base-passwd 3.5.46
I: Validating base-passwd 3.5.46
I: Retrieving bash 5.0-4
I: Validating bash 5.0-4
I: Retrieving bsdmainutils 11.1.2
I: Validating bsdmainutils 11.1.2
I: Retrieving bsdutils 1:2.33.1-0.1
I: Validating bsdutils 1:2.33.1-0.1
I: Retrieving coreutils 8.30-3
I: Validating coreutils 8.30-3
I: Retrieving cpio 2.12+dfsg-9
I: Validating cpio 2.12+dfsg-9
I: Retrieving cron 3.0pl1-134
I: Validating cron 3.0pl1-134
I: Retrieving dash 0.5.10.2-5
I: Validating dash 0.5.10.2-5
I: Retrieving debconf 1.5.71
I: Validating debconf 1.5.71
I: Retrieving debconf-i18n 1.5.71
I: Validating debconf-i18n 1.5.71
I: Retrieving debianutils 4.8.6.1
I: Validating debianutils 4.8.6.1
I: Retrieving diffutils 1:3.7-3
I: Validating diffutils 1:3.7-3
I: Retrieving dirmngr 2.2.12-1+rpi1
I: Validating dirmngr 2.2.12-1+rpi1
I: Retrieving dmidecode 3.2-1
I: Validating dmidecode 3.2-1
I: Retrieving dmsetup 2:1.02.155-3
I: Validating dmsetup 2:1.02.155-3
I: Retrieving dpkg 1.19.7
I: Validating dpkg 1.19.7
I: Retrieving e2fsprogs 1.44.5-1
I: Validating e2fsprogs 1.44.5-1
I: Retrieving fdisk 2.33.1-0.1
I: Validating fdisk 2.33.1-0.1
I: Retrieving findutils 4.6.0+git+20190209-2
I: Validating findutils 4.6.0+git+20190209-2
I: Retrieving gcc-4.9-base 4.9.4-2+rpi1+b19
I: Validating gcc-4.9-base 4.9.4-2+rpi1+b19
I: Retrieving gcc-5-base 5.5.0-8
I: Validating gcc-5-base 5.5.0-8
I: Retrieving gcc-6-base 6.5.0-1+rpi1+b1
I: Validating gcc-6-base 6.5.0-1+rpi1+b1
I: Retrieving gcc-7-base 7.3.0-19
I: Validating gcc-7-base 7.3.0-19
I: Retrieving gcc-8-base 8.3.0-6+rpi1
I: Validating gcc-8-base 8.3.0-6+rpi1
I: Retrieving gdbm-l10n 1.18.1-4
I: Validating gdbm-l10n 1.18.1-4
I: Retrieving gnupg 2.2.12-1+rpi1
I: Validating gnupg 2.2.12-1+rpi1
I: Retrieving gnupg-l10n 2.2.12-1+rpi1
I: Validating gnupg-l10n 2.2.12-1+rpi1
I: Retrieving gnupg-utils 2.2.12-1+rpi1
I: Validating gnupg-utils 2.2.12-1+rpi1
I: Retrieving gpg 2.2.12-1+rpi1
I: Validating gpg 2.2.12-1+rpi1
I: Retrieving gpg-agent 2.2.12-1+rpi1
I: Validating gpg-agent 2.2.12-1+rpi1
I: Retrieving gpg-wks-client 2.2.12-1+rpi1
I: Validating gpg-wks-client 2.2.12-1+rpi1
I: Retrieving gpg-wks-server 2.2.12-1+rpi1
I: Validating gpg-wks-server 2.2.12-1+rpi1
I: Retrieving gpgconf 2.2.12-1+rpi1
I: Validating gpgconf 2.2.12-1+rpi1
I: Retrieving gpgsm 2.2.12-1+rpi1
I: Validating gpgsm 2.2.12-1+rpi1
I: Retrieving gpgv 2.2.12-1+rpi1
I: Validating gpgv 2.2.12-1+rpi1
I: Retrieving grep 3.3-1
I: Validating grep 3.3-1
I: Retrieving groff-base 1.22.4-3
I: Validating groff-base 1.22.4-3
I: Retrieving gzip 1.9-3
I: Validating gzip 1.9-3
I: Retrieving hostname 3.21
I: Validating hostname 3.21
I: Retrieving ifupdown 0.8.35
I: Validating ifupdown 0.8.35
I: Retrieving info 6.5.0.dfsg.1-4+b1
I: Validating info 6.5.0.dfsg.1-4+b1
I: Retrieving init 1.56+nmu1
I: Validating init 1.56+nmu1
I: Retrieving init-system-helpers 1.56+nmu1
I: Validating init-system-helpers 1.56+nmu1
I: Retrieving install-info 6.5.0.dfsg.1-4+b1
I: Validating install-info 6.5.0.dfsg.1-4+b1
I: Retrieving iproute2 4.20.0-2
I: Validating iproute2 4.20.0-2
I: Retrieving iptables 1.8.2-4
I: Validating iptables 1.8.2-4
I: Retrieving iputils-ping 3:20180629-2
I: Validating iputils-ping 3:20180629-2
I: Retrieving isc-dhcp-client 4.4.1-2
I: Validating isc-dhcp-client 4.4.1-2
I: Retrieving isc-dhcp-common 4.4.1-2
I: Validating isc-dhcp-common 4.4.1-2
I: Retrieving kmod 26-1
I: Validating kmod 26-1
I: Retrieving less 487-0.1
I: Validating less 487-0.1
I: Retrieving libacl1 2.2.53-4
I: Validating libacl1 2.2.53-4
I: Retrieving libapparmor1 2.13.2-10
I: Validating libapparmor1 2.13.2-10
I: Retrieving libapt-inst2.0 1.8.2
I: Validating libapt-inst2.0 1.8.2
I: Retrieving libapt-pkg5.0 1.8.2
I: Validating libapt-pkg5.0 1.8.2
I: Retrieving libargon2-1 0~20171227-0.2
I: Validating libargon2-1 0~20171227-0.2
I: Retrieving libassuan0 2.5.2-1
I: Validating libassuan0 2.5.2-1
I: Retrieving libatomic1 8.3.0-6+rpi1
I: Validating libatomic1 8.3.0-6+rpi1
I: Retrieving libattr1 1:2.4.48-4
I: Validating libattr1 1:2.4.48-4
I: Retrieving libaudit-common 1:2.8.4-3
I: Validating libaudit-common 1:2.8.4-3
I: Retrieving libaudit1 1:2.8.4-3
I: Validating libaudit1 1:2.8.4-3
I: Retrieving libblkid1 2.33.1-0.1
I: Validating libblkid1 2.33.1-0.1
I: Retrieving libboost-iostreams1.58.0 1.58.0+dfsg-5.1+rpi1+b4
I: Validating libboost-iostreams1.58.0 1.58.0+dfsg-5.1+rpi1+b4
I: Retrieving libbsd0 0.9.1-2
I: Validating libbsd0 0.9.1-2
I: Retrieving libbz2-1.0 1.0.6-9
I: Validating libbz2-1.0 1.0.6-9
I: Retrieving libc-bin 2.28-10+rpi1
I: Validating libc-bin 2.28-10+rpi1
I: Retrieving libc6 2.28-10+rpi1
I: Validating libc6 2.28-10+rpi1
I: Retrieving libcap-ng0 0.7.9-2
I: Validating libcap-ng0 0.7.9-2
I: Retrieving libcap2 1:2.25-2
I: Validating libcap2 1:2.25-2
I: Retrieving libcap2-bin 1:2.25-2
I: Validating libcap2-bin 1:2.25-2
I: Retrieving libcom-err2 1.44.5-1
I: Validating libcom-err2 1.44.5-1
I: Retrieving libcryptsetup12 2:2.1.0-5
I: Validating libcryptsetup12 2:2.1.0-5
I: Retrieving libdb5.3 5.3.28+dfsg1-0.5
I: Validating libdb5.3 5.3.28+dfsg1-0.5
I: Retrieving libdebconfclient0 0.249
I: Validating libdebconfclient0 0.249
I: Retrieving libdevmapper1.02.1 2:1.02.155-3
I: Validating libdevmapper1.02.1 2:1.02.155-3
I: Retrieving libdns-export1104 1:9.11.5.P4+dfsg-5.1
I: Validating libdns-export1104 1:9.11.5.P4+dfsg-5.1
I: Retrieving libelf1 0.176-1.1
I: Validating libelf1 0.176-1.1
I: Retrieving libestr0 0.1.10-2.1
I: Validating libestr0 0.1.10-2.1
I: Retrieving libext2fs2 1.44.5-1
I: Validating libext2fs2 1.44.5-1
I: Retrieving libfastjson4 0.99.8-2
I: Validating libfastjson4 0.99.8-2
I: Retrieving libfdisk1 2.33.1-0.1
I: Validating libfdisk1 2.33.1-0.1
I: Retrieving libffi6 3.2.1-9
I: Validating libffi6 3.2.1-9
I: Retrieving libgcc1 1:8.3.0-6+rpi1
I: Validating libgcc1 1:8.3.0-6+rpi1
I: Retrieving libgcrypt20 1.8.4-5
I: Validating libgcrypt20 1.8.4-5
I: Retrieving libgdbm6 1.18.1-4
I: Validating libgdbm6 1.18.1-4
I: Retrieving libgmp10 2:6.1.2+dfsg-4
I: Validating libgmp10 2:6.1.2+dfsg-4
I: Retrieving libgnutls30 3.6.7-4
I: Validating libgnutls30 3.6.7-4
I: Retrieving libgpg-error0 1.35-1
I: Validating libgpg-error0 1.35-1
I: Retrieving libhogweed4 3.4.1-1
I: Validating libhogweed4 3.4.1-1
I: Retrieving libident 0.22-3.1
I: Validating libident 0.22-3.1
I: Retrieving libidn11 1.33-2.2
I: Validating libidn11 1.33-2.2
I: Retrieving libidn2-0 2.0.5-1
I: Validating libidn2-0 2.0.5-1
I: Retrieving libip4tc0 1.8.2-4
I: Validating libip4tc0 1.8.2-4
I: Retrieving libip6tc0 1.8.2-4
I: Validating libip6tc0 1.8.2-4
I: Retrieving libiptc0 1.8.2-4
I: Validating libiptc0 1.8.2-4
I: Retrieving libisc-export1100 1:9.11.5.P4+dfsg-5.1
I: Validating libisc-export1100 1:9.11.5.P4+dfsg-5.1
I: Retrieving libjson-c3 0.12.1+ds-2
I: Validating libjson-c3 0.12.1+ds-2
I: Retrieving libkmod2 26-1
I: Validating libkmod2 26-1
I: Retrieving libksba8 1.3.5-2
I: Validating libksba8 1.3.5-2
I: Retrieving libldap-2.4-2 2.4.47+dfsg-3+rpi1
I: Validating libldap-2.4-2 2.4.47+dfsg-3+rpi1
I: Retrieving libldap-common 2.4.47+dfsg-3+rpi1
I: Validating libldap-common 2.4.47+dfsg-3+rpi1
I: Retrieving liblocale-gettext-perl 1.07-3+b3
I: Validating liblocale-gettext-perl 1.07-3+b3
I: Retrieving liblognorm5 2.0.5-1
I: Validating liblognorm5 2.0.5-1
I: Retrieving liblz4-1 1.8.3-1
I: Validating liblz4-1 1.8.3-1
I: Retrieving liblzma5 5.2.4-1
I: Validating liblzma5 5.2.4-1
I: Retrieving libmnl-dev 1.0.4-2
I: Validating libmnl-dev 1.0.4-2
I: Retrieving libmnl0 1.0.4-2
I: Validating libmnl0 1.0.4-2
I: Retrieving libmount1 2.33.1-0.1
I: Validating libmount1 2.33.1-0.1
I: Retrieving libncurses6 6.1+20181013-2
I: Validating libncurses6 6.1+20181013-2
I: Retrieving libncursesw6 6.1+20181013-2
I: Validating libncursesw6 6.1+20181013-2
I: Retrieving libnetfilter-conntrack3 1.0.7-1
I: Validating libnetfilter-conntrack3 1.0.7-1
I: Retrieving libnettle6 3.4.1-1
I: Validating libnettle6 3.4.1-1
I: Retrieving libnfnetlink0 1.0.1-3
I: Validating libnfnetlink0 1.0.1-3
I: Retrieving libnftnl11 1.1.2-2
I: Validating libnftnl11 1.1.2-2
I: Retrieving libnpth0 1.6-1
I: Validating libnpth0 1.6-1
I: Retrieving libp11-kit0 0.23.15-2
I: Validating libp11-kit0 0.23.15-2
I: Retrieving libpam-modules 1.3.1-5
I: Validating libpam-modules 1.3.1-5
I: Retrieving libpam-modules-bin 1.3.1-5
I: Validating libpam-modules-bin 1.3.1-5
I: Retrieving libpam-runtime 1.3.1-5
I: Validating libpam-runtime 1.3.1-5
I: Retrieving libpam0g 1.3.1-5
I: Validating libpam0g 1.3.1-5
I: Retrieving libpcre3 2:8.39-12
I: Validating libpcre3 2:8.39-12
I: Retrieving libpipeline1 1.5.1-2
I: Validating libpipeline1 1.5.1-2
I: Retrieving libpopt0 1.16-12
I: Validating libpopt0 1.16-12
I: Retrieving libprocps7 2:3.3.15-2
I: Validating libprocps7 2:3.3.15-2
I: Retrieving libreadline6 6.3-9
I: Validating libreadline6 6.3-9
I: Retrieving libreadline7 7.0-5
I: Validating libreadline7 7.0-5
I: Retrieving libsasl2-2 2.1.27+dfsg-1+b1
I: Validating libsasl2-2 2.1.27+dfsg-1+b1
I: Retrieving libsasl2-modules-db 2.1.27+dfsg-1+b1
I: Validating libsasl2-modules-db 2.1.27+dfsg-1+b1
I: Retrieving libseccomp2 2.3.3-4
I: Validating libseccomp2 2.3.3-4
I: Retrieving libselinux1 2.8-1+b1
I: Validating libselinux1 2.8-1+b1
I: Retrieving libsemanage-common 2.8-2
I: Validating libsemanage-common 2.8-2
I: Retrieving libsemanage1 2.8-2
I: Validating libsemanage1 2.8-2
I: Retrieving libsepol1 2.8-1
I: Validating libsepol1 2.8-1
I: Retrieving libsigc++-1.2-5c2 1.2.7-2+b1
I: Validating libsigc++-1.2-5c2 1.2.7-2+b1
I: Retrieving libsmartcols1 2.33.1-0.1
I: Validating libsmartcols1 2.33.1-0.1
I: Retrieving libsqlite3-0 3.27.2-3
I: Validating libsqlite3-0 3.27.2-3
I: Retrieving libss2 1.44.5-1
I: Validating libss2 1.44.5-1
I: Retrieving libssl1.1 1.1.1c-1
I: Validating libssl1.1 1.1.1c-1
I: Retrieving libstdc++6 8.3.0-6+rpi1
I: Validating libstdc++6 8.3.0-6+rpi1
I: Retrieving libsystemd0 241-5+rpi1
I: Validating libsystemd0 241-5+rpi1
I: Retrieving libtasn1-6 4.13-3
I: Validating libtasn1-6 4.13-3
I: Retrieving libtext-charwidth-perl 0.04-7.1+b1
I: Validating libtext-charwidth-perl 0.04-7.1+b1
I: Retrieving libtext-iconv-perl 1.7-5+b10
I: Validating libtext-iconv-perl 1.7-5+b10
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libtinfo5 6.1+20181013-2
I: Validating libtinfo5 6.1+20181013-2
I: Retrieving libtinfo6 6.1+20181013-2
I: Validating libtinfo6 6.1+20181013-2
I: Retrieving libuchardet0 0.0.6-3
I: Validating libuchardet0 0.0.6-3
I: Retrieving libudev0 175-7.2
I: Validating libudev0 175-7.2
I: Retrieving libudev1 241-5+rpi1
I: Validating libudev1 241-5+rpi1
I: Retrieving libunistring2 0.9.10-1
I: Validating libunistring2 0.9.10-1
I: Retrieving libuuid1 2.33.1-0.1
I: Validating libuuid1 2.33.1-0.1
I: Retrieving libxtables12 1.8.2-4
I: Validating libxtables12 1.8.2-4
I: Retrieving libzstd1 1.3.8+dfsg-3+rpi1
I: Validating libzstd1 1.3.8+dfsg-3+rpi1
I: Retrieving login 1:4.5-1.1
I: Validating login 1:4.5-1.1
I: Retrieving logrotate 3.14.0-4
I: Validating logrotate 3.14.0-4
I: Retrieving lsb-base 10.2019051400+rpi1
I: Validating lsb-base 10.2019051400+rpi1
I: Retrieving man-db 2.8.5-2
I: Validating man-db 2.8.5-2
I: Retrieving mawk 1.3.3-17
I: Validating mawk 1.3.3-17
I: Retrieving mount 2.33.1-0.1
I: Validating mount 2.33.1-0.1
I: Retrieving multiarch-support 2.28-10+rpi1
I: Validating multiarch-support 2.28-10+rpi1
I: Retrieving nano 3.2-3
I: Validating nano 3.2-3
I: Retrieving ncurses-base 6.1+20181013-2
I: Validating ncurses-base 6.1+20181013-2
I: Retrieving ncurses-bin 6.1+20181013-2
I: Validating ncurses-bin 6.1+20181013-2
I: Retrieving net-tools 1.60+git20180626.aebd88e-1
I: Validating net-tools 1.60+git20180626.aebd88e-1
I: Retrieving netbase 5.6
I: Validating netbase 5.6
I: Retrieving netcat-openbsd 1.195-2
I: Validating netcat-openbsd 1.195-2
I: Retrieving netcat-traditional 1.10-41.1
I: Validating netcat-traditional 1.10-41.1
I: Retrieving passwd 1:4.5-1.1
I: Validating passwd 1:4.5-1.1
I: Retrieving paxctld 1.2.1-1
I: Validating paxctld 1.2.1-1
I: Retrieving perl-base 5.28.1-6
I: Validating perl-base 5.28.1-6
I: Retrieving pinentry-curses 1.1.0-2
I: Validating pinentry-curses 1.1.0-2
I: Retrieving procps 2:3.3.15-2
I: Validating procps 2:3.3.15-2
I: Retrieving raspbian-archive-keyring 20120528.2
I: Validating raspbian-archive-keyring 20120528.2
I: Retrieving readline-common 7.0-5
I: Validating readline-common 7.0-5
I: Retrieving rsyslog 8.1901.0-1
I: Validating rsyslog 8.1901.0-1
I: Retrieving sed 4.7-1
I: Validating sed 4.7-1
I: Retrieving sensible-utils 0.0.12
I: Validating sensible-utils 0.0.12
I: Retrieving systemd 241-5+rpi1
I: Validating systemd 241-5+rpi1
I: Retrieving systemd-sysv 241-5+rpi1
I: Validating systemd-sysv 241-5+rpi1
I: Retrieving sysvinit-utils 2.93-8
I: Validating sysvinit-utils 2.93-8
I: Retrieving tar 1.30+dfsg-6
I: Validating tar 1.30+dfsg-6
I: Retrieving tasksel 3.53
I: Validating tasksel 3.53
I: Retrieving tasksel-data 3.53
I: Validating tasksel-data 3.53
I: Retrieving traceroute 1:2.1.0-2
I: Validating traceroute 1:2.1.0-2
I: Retrieving tzdata 2019a-1
I: Validating tzdata 2019a-1
I: Retrieving udev 241-5+rpi1
I: Validating udev 241-5+rpi1
I: Retrieving util-linux 2.33.1-0.1
I: Validating util-linux 2.33.1-0.1
I: Retrieving vim-common 2:8.1.0875-5
I: Validating vim-common 2:8.1.0875-5
I: Retrieving vim-tiny 2:8.1.0875-5
I: Validating vim-tiny 2:8.1.0875-5
I: Retrieving xxd 2:8.1.0875-5
I: Validating xxd 2:8.1.0875-5
I: Retrieving zlib1g 1:1.2.11.dfsg-1
I: Validating zlib1g 1:1.2.11.dfsg-1
rmdir: failed to remove '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/debootstrap': Directory not empty
[11:45:14] End /home/pi/pi-gen-master/stage0/prerun.sh
[11:45:14] Begin /home/pi/pi-gen-master/stage0/00-configure-apt
[11:45:14] Begin /home/pi/pi-gen-master/stage0/00-configure-apt/00-run.sh
install: target '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/etc/apt/' is not a directory: No such file or directory
[11:45:17] End /home/pi/pi-gen-master/stage0/00-configure-apt/00-run.sh
[11:45:17] End /home/pi/pi-gen-master/stage0/00-configure-apt
[11:45:17] Begin /home/pi/pi-gen-master/stage0/01-locale
[11:45:17] Begin /home/pi/pi-gen-master/stage0/01-locale/00-debconf
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:20] End /home/pi/pi-gen-master/stage0/01-locale/00-debconf
[11:45:20] Begin /home/pi/pi-gen-master/stage0/01-locale/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:20] End /home/pi/pi-gen-master/stage0/01-locale/00-packages
[11:45:20] End /home/pi/pi-gen-master/stage0/01-locale
[11:45:20] Begin /home/pi/pi-gen-master/stage0/02-firmware
[11:45:20] Begin /home/pi/pi-gen-master/stage0/02-firmware/01-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage0/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:20] End /home/pi/pi-gen-master/stage0/02-firmware/01-packages
[11:45:20] End /home/pi/pi-gen-master/stage0/02-firmware
[11:45:20] Begin /home/pi/pi-gen-master/stage0/files
[11:45:20] End /home/pi/pi-gen-master/stage0/files
[11:45:20] End /home/pi/pi-gen-master/stage0
[11:45:20] Begin /home/pi/pi-gen-master/stage1
[11:45:20] Begin /home/pi/pi-gen-master/stage1/prerun.sh
[11:45:21] End /home/pi/pi-gen-master/stage1/prerun.sh
[11:45:21] Begin /home/pi/pi-gen-master/stage1/00-boot-files
[11:45:21] Begin /home/pi/pi-gen-master/stage1/00-boot-files/00-run.sh
install: target '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/boot/' is not a directory: No such file or directory
[11:45:21] End /home/pi/pi-gen-master/stage1/00-boot-files/00-run.sh
[11:45:21] End /home/pi/pi-gen-master/stage1/00-boot-files
[11:45:21] Begin /home/pi/pi-gen-master/stage1/01-sys-tweaks
[11:45:21] Begin /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-patches
Converting meta-data to version 2
Applying patch /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-patches/01-bashrc.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/rootfs/etc/skel/.bashrc
|+++ b/rootfs/etc/skel/.bashrc
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
Patch /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-patches/01-bashrc.diff does not apply (enforce with -f)
[11:45:22] End /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-patches
[11:45:22] Begin /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-run.sh
'files/fstab' -> '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/etc/fstab'
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/proc: mount point does not exist.
[11:45:22] End /home/pi/pi-gen-master/stage1/01-sys-tweaks/00-run.sh
[11:45:22] End /home/pi/pi-gen-master/stage1/01-sys-tweaks
[11:45:22] Begin /home/pi/pi-gen-master/stage1/02-net-tweaks
[11:45:22] Begin /home/pi/pi-gen-master/stage1/02-net-tweaks/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:22] End /home/pi/pi-gen-master/stage1/02-net-tweaks/00-packages
[11:45:22] Begin /home/pi/pi-gen-master/stage1/02-net-tweaks/00-patches
Converting meta-data to version 2
Applying patch /home/pi/pi-gen-master/stage1/02-net-tweaks/00-patches/01-hosts.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: jessie-stage1/rootfs/etc/hosts
|===================================================================
|--- jessie-stage1.orig/rootfs/etc/hosts
|+++ jessie-stage1/rootfs/etc/hosts
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch /home/pi/pi-gen-master/stage1/02-net-tweaks/00-patches/01-hosts.diff does not apply (enforce with -f)
[11:45:22] End /home/pi/pi-gen-master/stage1/02-net-tweaks/00-patches
[11:45:22] Begin /home/pi/pi-gen-master/stage1/02-net-tweaks/00-run.sh
install: cannot create regular file '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/etc/modprobe.d/ipv6.conf': No such file or directory
[11:45:22] End /home/pi/pi-gen-master/stage1/02-net-tweaks/00-run.sh
[11:45:22] End /home/pi/pi-gen-master/stage1/02-net-tweaks
[11:45:22] Begin /home/pi/pi-gen-master/stage1/03-install-packages
[11:45:22] Begin /home/pi/pi-gen-master/stage1/03-install-packages/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage1/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:22] End /home/pi/pi-gen-master/stage1/03-install-packages/00-packages
[11:45:22] End /home/pi/pi-gen-master/stage1/03-install-packages
[11:45:22] End /home/pi/pi-gen-master/stage1
[11:45:22] Begin /home/pi/pi-gen-master/stage2
[11:45:22] Begin /home/pi/pi-gen-master/stage2/prerun.sh
[11:45:25] End /home/pi/pi-gen-master/stage2/prerun.sh
[11:45:27] Begin /home/pi/pi-gen-master/stage2/00-copies-and-fills
[11:45:27] Begin /home/pi/pi-gen-master/stage2/00-copies-and-fills/01-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:37] End /home/pi/pi-gen-master/stage2/00-copies-and-fills/01-packages
[11:45:37] Begin /home/pi/pi-gen-master/stage2/00-copies-and-fills/02-run.sh
mv: cannot stat '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/ld.so.preload': No such file or directory
[11:45:37] End /home/pi/pi-gen-master/stage2/00-copies-and-fills/02-run.sh
[11:45:37] End /home/pi/pi-gen-master/stage2/00-copies-and-fills
[11:45:38] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks
[11:45:38] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-debconf
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:39] End /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-debconf
[11:45:39] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-packages-nr
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:40] End /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-packages-nr
[11:45:40] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:40] End /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-packages
[11:45:40] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-patches
Converting meta-data to version 2
Applying patch /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-patches/01-useradd.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: jessie-stage2/rootfs/etc/default/useradd
|===================================================================
|--- jessie-stage2.orig/rootfs/etc/default/useradd
|+++ jessie-stage2/rootfs/etc/default/useradd
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Patch /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-patches/01-useradd.diff does not apply (enforce with -f)
[11:45:40] End /home/pi/pi-gen-master/stage2/01-sys-tweaks/00-patches
[11:45:40] Begin /home/pi/pi-gen-master/stage2/01-sys-tweaks/01-run.sh
install: target '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/init.d/' is not a directory: No such file or directory
[11:45:40] End /home/pi/pi-gen-master/stage2/01-sys-tweaks/01-run.sh
[11:45:40] End /home/pi/pi-gen-master/stage2/01-sys-tweaks
[11:45:40] Begin /home/pi/pi-gen-master/stage2/02-net-tweaks
[11:45:40] Begin /home/pi/pi-gen-master/stage2/02-net-tweaks/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:40] End /home/pi/pi-gen-master/stage2/02-net-tweaks/00-packages
[11:45:40] Begin /home/pi/pi-gen-master/stage2/02-net-tweaks/01-run.sh
install: creating directory '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/systemd/system/dhcpcd.service.d'
'files/wait.conf' -> '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/systemd/system/dhcpcd.service.d/wait.conf'
install: creating directory '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/wpa_supplicant'
'files/wpa_supplicant.conf' -> '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/wpa_supplicant/wpa_supplicant.conf'
[11:45:40] End /home/pi/pi-gen-master/stage2/02-net-tweaks/01-run.sh
[11:45:41] End /home/pi/pi-gen-master/stage2/02-net-tweaks
[11:45:41] Begin /home/pi/pi-gen-master/stage2/03-accept-mathematica-eula
[11:45:41] Begin /home/pi/pi-gen-master/stage2/03-accept-mathematica-eula/00-debconf
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:41] End /home/pi/pi-gen-master/stage2/03-accept-mathematica-eula/00-debconf
[11:45:41] End /home/pi/pi-gen-master/stage2/03-accept-mathematica-eula
[11:45:41] Begin /home/pi/pi-gen-master/stage2/03-set-timezone
[11:45:41] Begin /home/pi/pi-gen-master/stage2/03-set-timezone/02-run.sh
rm: cannot remove '/home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage2/rootfs/etc/localtime': No such file or directory
[11:45:41] End /home/pi/pi-gen-master/stage2/03-set-timezone/02-run.sh
[11:45:41] End /home/pi/pi-gen-master/stage2/03-set-timezone
[11:45:41] End /home/pi/pi-gen-master/stage2
[11:45:41] Begin /home/pi/pi-gen-master/stage3
[11:45:41] Begin /home/pi/pi-gen-master/stage3/prerun.sh
[11:45:42] End /home/pi/pi-gen-master/stage3/prerun.sh
[11:45:42] Begin /home/pi/pi-gen-master/stage3/00-install-packages
[11:45:42] Begin /home/pi/pi-gen-master/stage3/00-install-packages/00-debconf
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:42] End /home/pi/pi-gen-master/stage3/00-install-packages/00-debconf
[11:45:42] Begin /home/pi/pi-gen-master/stage3/00-install-packages/00-packages-nr
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:42] End /home/pi/pi-gen-master/stage3/00-install-packages/00-packages-nr
[11:45:42] Begin /home/pi/pi-gen-master/stage3/00-install-packages/00-packages
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:42] End /home/pi/pi-gen-master/stage3/00-install-packages/00-packages
[11:45:42] Begin /home/pi/pi-gen-master/stage3/00-install-packages/01-run.sh
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage3/rootfs/proc: mount point does not exist.
[11:45:42] End /home/pi/pi-gen-master/stage3/00-install-packages/01-run.sh
[11:45:42] End /home/pi/pi-gen-master/stage3/00-install-packages
[11:45:42] Begin /home/pi/pi-gen-master/stage3/01-tweaks
[11:45:42] Begin /home/pi/pi-gen-master/stage3/01-tweaks/00-run.sh
[11:45:42] End /home/pi/pi-gen-master/stage3/01-tweaks/00-run.sh
[11:45:42] End /home/pi/pi-gen-master/stage3/01-tweaks
[11:45:42] End /home/pi/pi-gen-master/stage3
[11:45:42] Begin /home/pi/pi-gen-master/stage4
[11:45:42] Begin /home/pi/pi-gen-master/stage4/prerun.sh
[11:45:43] End /home/pi/pi-gen-master/stage4/prerun.sh
[11:45:45] Begin /home/pi/pi-gen-master/stage4/00-install-packages
[11:45:45] Begin /home/pi/pi-gen-master/stage4/00-install-packages/00-debconf
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/dev/pts: No such file or directory
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/sys: mount point does not exist.
execve /bin/bash failed!
[11:45:46] End /home/pi/pi-gen-master/stage4/00-install-packages/00-debconf
[11:45:46] Begin /home/pi/pi-gen-master/stage4/00-install-packages/00-packages-nr
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/proc: mount point does not exist.
mount: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/dev: mount point does not exist.
realpath: /home/pi/pi-gen-master/work/2019-06-26-Raspbian/stage4/rootfs/dev/pts: No such file or directory
^C
pi@raspberrypi:~/pi-gen-master $ 
`
XECDesign commented 5 years ago

Not sure why your build continues. Mine fails with bootstrap.

If I recall correctly, debootstrap doesn't like running through capsh. Since it's not important during the bootstrap stage, we can just remove it, but it would be nice to know what the actual issue is.

artynet commented 5 years ago

I also got this error when using the docker build....

[22:19:29] Begin /pi-gen/stage1/02-net-tweaks/00-packages
Reading package lists...
Building dependency tree...
Reading state information...
netbase is already the newest version (5.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[22:19:30] End /pi-gen/stage1/02-net-tweaks/00-packages
[22:19:30] Begin /pi-gen/stage1/02-net-tweaks/00-patches
The quilt meta-data in .pc/ are already in the version 2 format; nothing to do
File series fully applied, ends at patch /pi-gen/stage1/02-net-tweaks/00-patches/01-hosts.diff
[22:19:30] End /pi-gen/stage1/02-net-tweaks/00-patches
[22:19:30] Begin /pi-gen/stage1/02-net-tweaks/00-run.sh
[22:19:30] End /pi-gen/stage1/02-net-tweaks/00-run.sh
[22:19:30] End /pi-gen/stage1/02-net-tweaks
[22:19:30] Begin /pi-gen/stage1/03-install-packages
[22:19:30] Begin /pi-gen/stage1/03-install-packages/00-packages
Reading package lists...
Building dependency tree...
Reading state information...
libraspberrypi-bin is already the newest version (1.20190620+1-1).
libraspberrypi0 is already the newest version (1.20190620+1-1).
raspi-config is already the newest version (20190620).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[22:19:31] End /pi-gen/stage1/03-install-packages/00-packages
[22:19:31] End /pi-gen/stage1/03-install-packages
[22:19:31] End /pi-gen/stage1
[22:19:31] Begin /pi-gen/stage2
[22:19:31] Begin /pi-gen/stage2/prerun.sh
[22:19:31] End /pi-gen/stage2/prerun.sh
[22:19:31] Begin /pi-gen/stage2/00-copies-and-fills
[22:19:31] Begin /pi-gen/stage2/00-copies-and-fills/01-packages
Reading package lists...
Building dependency tree...
Reading state information...
raspi-copies-and-fills is already the newest version (0.13).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[22:19:33] End /pi-gen/stage2/00-copies-and-fills/01-packages
[22:19:33] Begin /pi-gen/stage2/00-copies-and-fills/02-run.sh
mv: cannot stat '/pi-gen/work/2019-06-26-raspbian-nj/stage2/rootfs/etc/ld.so.preload': No such file or directory

real    0m18,773s
user    0m0,065s
sys     0m0,018s
dlabun commented 5 years ago

For the sake of troubleshooting I pulled a clean copy of Pi-Gen to a 3B+ running Stretch and building Buster worked fine. The problem must reside within a change made in Debian between Stretch and Buster and not Pi-Gen itself.

Nope, still fails with missing folders / files during the export phase.

RussellJoyce commented 5 years ago

If I recall correctly, debootstrap doesn't like running through capsh. Since it's not important during the bootstrap stage, we can just remove it, but it would be nice to know what the actual issue is.

capsh doesn't appear to be the issue, or at least replacing capsh --drop=cap_setfcap -- with /bin/bash in scripts/common still causes the build to fail for me, at the "rmdir: failed to remove ... Directory not empty" error (on latest Raspbian Buster).

benp44 commented 5 years ago

capsh doesn't appear to be the issue, or at least replacing capsh --drop=cap_setfcap -- with /bin/bash in scripts/common still causes the build to fail for me, at the "rmdir: failed to remove ... Directory not empty" error (on latest Raspbian Buster).

The problem definitely seemed to be capsh for me. The build seems to be working since I replaced

setarch linux32 capsh --drop=cap_setfcap -- "${BOOTSTRAP_CMD}" "${BOOTSTRAP_ARGS[@]}" || true

with just

debootstrap "${BOOTSTRAP_ARGS[@]}" || true
RussellJoyce commented 5 years ago

Hmm yep, that works for me too, thanks. Looks like my mistake was thinking that replacing it with /bin/bash would be a good idea (based on the "Execute /bin/bash with trailing arguments" line in the capsh manpage).

dlabun commented 5 years ago

It looks like this workaround breaks the APT proxy option, After making the same change on my end I started getting a lot of messages reading "Unsupported proxy configured: 192.168.2.1717//3142". It's odd because I can see Pi-Gen is pulling some files from the proxy at first but then suddenly it doesn't like the proxy any more.

XECDesign commented 5 years ago

Not working through bash was a good hint. Looks like it runs debootstrap through bash rather than sh then has compatibility issues?

Not sure how to fix this properly. We need capsh because otherwise you end up with files with capabilities set which will have problems on NFS filesystems or when archived with tar.

Capsh will only use bash, but will parse arguments, so -c "debootstrap ..." works. Then things get hairy when it comes to making sure arguments are passed properly.

smg-bg commented 5 years ago

@jvonau I've tried your change:

setarch linux32 capsh --drop=cap_setfcap -- "${BOOTSTRAP_CMD}" "${BOOTSTRAP_ARGS[@]}" || true

debootstrap "${BOOTSTRAP_ARGS[@]}" || true

...and the build seems to work. However, I'm not sure I understand what would be the impact of this change? Could you please clarify?

jvonau commented 5 years ago

@smg-bg Not sure of the total impact, haven't tried booting the resulting image yet. I was looking for quick way to continue working towards a custom image farther up the chain and the above mentioned fix got me past the error I was seeing. Easy to revert when there is a proper fix.

dlabun commented 5 years ago

All of the images I've built with that workaround seem to work fine.

jvonau commented 5 years ago

Good to know, thanks

smg-bg commented 5 years ago

I can also confirm that my custom image works fine with that fix.

XECDesign commented 5 years ago

If you don't drop cap_setfcap you end up with files with capabilities set, which NFS doesn't support. So, if you're netbooting, you may find ping won't work without sudo.

XECDesign commented 4 years ago

I think I have a fix here https://github.com/RPi-Distro/pi-gen/issues/338#issuecomment-546995455

dlabun commented 4 years ago

I’ll test it this weekend.

mutability commented 4 years ago

An alternative fix here is to pass the full path to debootstrap. (The underlying issue is that in the case that breaks, $0 within debootstrap is not a fully qualified path)

jerrychong25 commented 2 years ago

Hi @benp44 / @RussellJoyce / @dlabun / @smg-bg / @mutability,

Do u guys still encounter same error "stage0/rootfs/proc: mount point does not exist." recently? If yes, can share your solution on this issue?

As I encounter same error today, but latest fix by @XECDesign on 29th October 2019 is already in the scripts/common file.

Here is error screenshot:

Screenshot 2022-04-16 at 1 14 13 AM

Here is scripts/common file code: Screenshot 2022-04-16 at 1 19 13 AM

Thanks in advance!