/usr/libexec/nomadbsd-setup: Command not found

I installed 1.4-RC1 from GItHUb on VirtualBox.
It stop when it display following message.

/usr/libexec/nomadbsd-setup: Command not found
root@NomadBSD:~ #

Hi @masayoshi,

it seems there was an error when building nomadbsd-setup. How did you build the image?
Where there any errors? Did you build the image on a FreeBSD with ZFS as filesystem?

masayoshi@FreeBSD:~ % uname -ar
FreeBSD FreeBSD 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC amd64
masayoshi@FreeBSD:~ % freebsd-version -ku
12.2-RELEASE-p1
12.2-RELEASE-p2

Did you build the image on a FreeBSD with ZFS as filesystem?

Yes,I did.

How did you build the image?

root@FreeBSD:/home/masayoshi/Downloads/NomadBSD-master # ./build all
As I got some error.
root@FreeBSD:/home/masayoshi/Downloads/NomadBSD-master # ./build resume
root@FreeBSD:/home/masayoshi/Downloads/NomadBSD-master # ./build all
root@FreeBSD:/home/masayoshi/Downloads/NomadBSD-master # ./build clean
root@FreeBSD:/home/masayoshi/Downloads/NomadBSD-master # ./build all

After that I installed it on VirtualBox.Handbook

This could be due to miscalculated disk space which happens on ZFS. Could please check the free space on the image as follows?:

# mdconfig -f nomadbsd.img
# mount /dev/md0s2a /mnt
# df -h /mnt
# umount /mnt
# mdconfig -d -u 0

root@FreeBSD:~ # mdconfig -f nomadbsd.img
md2
root@FreeBSD:~ # mount /dev/md2s2a /mnt/
root@FreeBSD:~ # df -h /mnt/
Filesystem Size Used Avail Capacity Mounted on
/dev/md2s2a 1.6G 1.6G -123M 108% /mnt
root@FreeBSD:~ # umount /mnt/
root@FreeBSD:~ # mdconfig -d -u 0

This seems to be the problem. Set BASEFS_EXTRA=2500 in build.cfg. Then try:

# rm nomadbsd.img
# ./build image

BTW: You might want to use the instructions for running NomadBSD in VB from here

rm nomadbsd.img

./build image

I tried nomadbsd.img from usb flash drive, It stoped when it displayed same message (/usr/libexec/nomadbsd-setup: Command not found)

I can not use nomadbsd.vmdk for VirtualBox. It also stop when it displayed same message .

Could you please record the build process and upload the log file?

# script nomadbsd-build.log
# ./build clean
# ./build all
# exit

I can not find upload icon here.

nomadbsd-build.log

Thank you for the log. Apparently the build process fails at the pkg stage for some reason (pkg: Fail to extract /usr/local/lib/thunderbird/libxul.so from package: Write error). Are you maybe short of disk space?

masayoshi@FreeBSD:~ % df -h
Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 194G 194G 337M 100% /
devfs 1.0K 1.0K 0B 100% /dev
linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
tmpfs 19G 4.0K 19G 0% /compat/linux/dev/shm
zroot/var/tmp 337M 88K 337M 0% /var/tmp
zroot/var/audit 337M 88K 337M 0% /var/audit
zroot/var/mail 337M 112K 337M 0% /var/mail
zroot/usr/src 1.7G 1.4G 337M 81% /usr/src
zroot/var/log 379M 42M 337M 11% /var/log
zroot/tmp 337M 152K 337M 0% /tmp
zroot/var/crash 742M 405M 337M 55% /var/crash
zroot/usr/home 25G 25G 337M 99% /usr/home
zroot/usr/ports 2.6G 2.3G 337M 87% /usr/ports
zroot 337M 88K 337M 0% /zroot
linsysfs 4.0K 4.0K 0B 100% /compat/linux/sys
devfs 1.0K 1.0K 0B 100% /compat/linux/dev
fdescfs 1.0K 1.0K 0B 100% /compat/linux/dev/fd
tmpfs 19G 4.0K 19G 0% /compat/linux/dev/shm
/dev/mmcsd0s1 7.2G 6.9G 325M 96% /mnt/sd_card

Thunar says NomadBSD is d367935 items, totalling 16.5 GiB (17,702,596,801 bytes).
How many space do I need to build ?

The build requires approx. 23GB.

Thank you for replay. I tried… but I failed.

root@FreeBSD:/home/masayoshi/NomadBSD # mdconfig -f nomadbsd.img
md0
root@FreeBSD:/home/masayoshi/NomadBSD # mount /dev/md0s2a /mnt/
root@FreeBSD:/home/masayoshi/NomadBSD # df -h /mnt/
Filesystem Size Used Avail Capacity Mounted on
/dev/md0s2a 4.1G 1.4G 2.4G 37% /mnt
root@FreeBSD:/home/masayoshi/NomadBSD # umount /mnt/
root@FreeBSD:/home/masayoshi/NomadBSD # mdconfig -d -u 0

(build.cfg)

Extra space in MB for base system.

#BASEFS_EXTRA=100
BASEFS_EXTRA=2500

nomadbsd-build-new.log

Please ignore following log
/dev/da0 120M 88M 32M 73% /mnt/usb_memory
I needed to use usb flash drive to save some files.

root@FreeBSD:/home/masayoshi/NomadBSD # dd if=nomadbsd.img of=/dev/da0 bs=1m

I used SanDisk 32GB usb flash drive.
It says same error. It stop.
I can not use NomadBSD from usb flash drive.

I also used nomadbsd.vmdk. It says same error.
I use ThinkPad x270.

Your build fails when it tries to copy the files from work/sys/usr/local to the uzip image. Every copy process seem to fail due to a mysterious Cannot extract through symlink error. From you log I can’t see that you created any symlinks, so I set up a system with ZFS to reproduce it, but I couldn’t. :thinking:

cpio: .: Cannot extract through symlink /home/masayoshi/NomadBSD/work/uzip_mnt
cpio: ./bin: Cannot extract through symlink /home/masayoshi/NomadBSD/work/uzip_mnt/bin
cpio: ./bin/mkfontdir: Cannot extract through symlink /home/masayoshi/NomadBSD/work/uzip_mnt/bin/mkfontdir
cpio: ./bin/sancov10: Cannot extract through symlink /home/masayoshi/NomadBSD/work/uzip_mnt/bin/sancov10
[...]