gpart inside jails
Norbert Koch
nkoch at demig.de
Fri Jun 17 06:23:08 UTC 2016
Am 2016-06-16 um 17:39 schrieb Allan Jude:
> On 2016-06-16 11:23, Norbert Koch wrote:
>> Hello,
>>
>> for creating freebsd boot flash media for embedded devices
>> I use mdconfig/gpart.
>>
>> Recently I put my 32-bit build machines into a jail under a 64-bit machine.
>> This is my configuration:
>>
>> Host: FreeBSD-10.3/amd64
>> Jail1: FreeBSD-9.1/i386
>> Jail2: FreeBSD-10.3/i386
>> Jail3: FreeBSD-10.3/amd64
>>
>> If I jexec gpart status I get this:
>> Jail1: segmentation fault
>> Jail2: segmentation fault
>> Jail3: correct result as seen under host system
>>
>> So, this is obviously a 32/64 bit issue. Any idea?
>>
>> Thank you,
>> Norbert Koch
>>
>> _______________________________________________
>> freebsd-hackers at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> You might want to look at:
>
> makefs(8): create a ufs filesystem in a file, from a directory tree or
> mtree file. This allows you to avoid mdconfig, and can be done as a
> non-root user.
>
> mkimg(8): create a disk or VM (vmdk, vdi, qcow2, raw, etc) image from
> one or more file systems. Allows you to create the partitions and load
> the boot code etc. This allows you to avoid gpart, and can be done as a
> non-root user.
>
Thank you. I'll try these.
> Re: why it crashes: I am guessing the kernel interface between gpart and
> geom_part.ko is not 32/64 safe or something. Someone else with a better
> informed opinion may be able to help you resolve the issue. Maybe the
> above workarounds will help.
>
--
Dipl.-Ing. Norbert Koch
Entwicklung Prozessregler
*****************************************
* demig Prozessautomatisierung GmbH *
* *
* Anschrift: Haardtstrasse 40 *
* D-57076 Siegen *
* Registergericht: Siegen HRB 2819 *
* Geschaeftsfuehrer: Joachim Herbst, *
* Winfried Held *
* Telefon: +49 271 772020 *
* Telefax: +49 271 74704 *
* E-Mail: info at demig.de *
* http://www.demig.de *
*****************************************
More information about the freebsd-hackers
mailing list