amd64 build failing on mount and unmount
When running the build for a couple of hours it is failing with an error on mount and unmount as shown in the log output below:
DEBUG:onlrfs:Executing:sudo mount -t proc proc stretch/rootfs-amd64.d/proc
mount: mount point stretch/rootfs-amd64.d/proc does not exist
ERROR:onlrfs:Exception 'Could not mount proc in rfs.' in OnlRfsContext::__enter__
DEBUG:onlrfs:Executing:sudo umount -l stretch/rootfs-amd64.d/dev stretch/rootfs-amd64.d/proc
umount: stretch/rootfs-amd64.d/proc: mountpoint not found
ERROR:onlrfs:Could not unmount dev and proc
/home/user1/OpenNetworkLinux/make/rfs.mk:50: recipe for target 'RFS' failed
make[3]: *** [RFS] Error 1
Traceback (most recent call last):
File "/home/user1/OpenNetworkLinux/tools/onlpm.py", line 1412, in <module>
pm.build(p)
File "/home/user1/OpenNetworkLinux/tools/onlpm.py", line 1087, in build
products = pg.build(dir_=dir_)
File "/home/user1/OpenNetworkLinux/tools/onlpm.py", line 690, in build
self.gmake_locked("", 'Build')
File "/home/user1/OpenNetworkLinux/tools/onlpm.py", line 665, in gmake_locked
ex=OnlPackageError('%s failed.' % operation))
File "/home/user1/OpenNetworkLinux/tools/onlu.py", line 126, in execute
raise ex
onlpm.OnlPackageError: 'Build failed.'
/home/user1/OpenNetworkLinux/make/pkg.mk:30: recipe for target 'pkgall' failed
make[2]: *** [pkgall] Error 1
/home/user1/OpenNetworkLinux/make/subdirs.mk:15: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/user1/OpenNetworkLinux/builds/amd64'
Makefile:23: recipe for target 'amd64' failed
make: *** [amd64] Error 2
make: *** [Makefile:57: docker] Error 2
I asked chatGPT could this be the solution? let me know:
The error you're seeing:
mount: mount point stretch/rootfs-amd64.d/proc does not exist
ERROR:onlrfs:Exception 'Could not mount proc in rfs.'
means the build system expected a directory proc inside your rootfs path but it wasn’t created beforehand.
✅ Quick Fix
Manually create the missing proc and dev mount points in the rootfs directory before retrying:
mkdir -p stretch/rootfs-amd64.d/proc
mkdir -p stretch/rootfs-amd64.d/dev
Then rerun the build:
make docker
🧠 Why It Happens
This happens if the multistrap or earlier stage fails silently or partially completes, skipping creation of subdirectories like proc, dev, sys. The script assumes they exist during the mount phase.
💡 Optional: Patch the Build System to Avoid It in Future
You can make the build process safer by editing the file:
OpenNetworkLinux/make/rfs.mk
And before the mount -t proc and mount -t devtmpfs, insert:
mkdir -p $(ROOTFS_DIR)/proc
mkdir -p $(ROOTFS_DIR)/dev
This prevents the issue from coming up again on clean builds.
Let me know if you're still stuck after this, or if you want to skip RFS creation altogether and only build ONL packages.
nope still the same problem:
E: Some index files failed to download. They have been ignored, or old ones used instead.
INFO:onlrfs:[profiler] sudo /usr/sbin/multistrap -d stretch/rootfs-amd64.d -f /tmp/tmpLkrJTu : 24.0149040222 seconds (0.40024840037 minutes)
DEBUG:onlrfs:Executing:sudo mount -t devtmpfs dev stretch/rootfs-amd64.d/dev
INFO:onlrfs:[profiler] sudo mount -t devtmpfs dev stretch/rootfs-amd64.d/dev : 0.0124349594116 seconds (0.000207249323527 minutes)
DEBUG:onlrfs:Executing:sudo mount -t proc proc stretch/rootfs-amd64.d/proc
DEBUG:onlrfs:Executing:sudo umount -l stretch/rootfs-amd64.d/dev stretch/rootfs-amd64.d/proc
make[3]: *** [RFS] Error 1
onlpm.OnlPackageError: 'Build failed.'
make[2]: *** [pkgall] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/user1/OpenNetworkLinux/builds/amd64'
Makefile:23: recipe for target 'amd64' failed
make: *** [amd64] Error 2
make: *** [Makefile:57: docker] Error 2
MAKE_COMMAND := make
CURDIR := /home/user1/OpenNetworkLinux
MAKEFILE_LIST := Makefile
MAKE_HOST := x86_64-pc-linux-gnu
MAKECMDGOALS := docker
MAKELEVEL := 0
MAKEFILES :=
GNUMAKEFLAGS :=
MAKE_VERSION := 4.3
MAKE_TERMERR := /dev/pts/0
SUFFIXES := .out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el
docker_check:
docker: docker_check
Makefile:
versions:
relclean:
docker-debug: docker_check```
The problems with the hosting site and the cached binaries have been fixed - can you please retry this to see if it's still broken for you?