freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
611 stars 187 forks source link

gpart not found but in $PATH #179

Closed holminger closed 7 years ago

holminger commented 7 years ago

Hi,

I'm trying to build an image for my Raspberry Pi and get always this error message. Creating a 1950MB raw disk image in: /root/crossbuild/work/FreeBSD-RPI-B.img Partitioning the raw disk image with MBR at Tue Jan 31 21:46:52 CET 2017 gpart create -s MBR md3 gpart: No such file or directory

But gpart is in my search path. [root@webserver3 ~/crossbuild]# which gpart /sbin/gpart

I tried several approaches like [root@webserver3 ~/crossbuild]# /bin/sh crochet/crochet.sh -c configs/crochet/raspi.cfg or [root@webserver3 ~/crossbuild/crochet]# ./crochet.sh -c ../configs/crochet/raspi.cfg but without luck.

I did all steps in jail.

Thanks for reading and best regards.

holminger commented 7 years ago

Hi guys,

I tried several things to get it working in a jail but I had no luck. The error message "gpart: No such file or directory" is not only related to the command gpart itself. A missing /dev/gpt , /dev/geom.ctl and the missing /dev/md are responsible as well. You can solve it by add `add path 'md' unhide add path 'gpt' unhide add path 'geom.ctl' unhide` to your devfs.rules.

Afterwards you will get something like: mount msdosfs is forbidden or so on. lsvfs destroyed any hope to get it work in a jail.

I copied all the stuff into a new vm without a jail and it works.

Sorry for the noise. I read the hint that it doesn't work in a jail to late.

Best regards,