Upgrading an i386 machine from amd64.

Jason Hellenthal jhellenthal at dataix.net
Mon Jun 2 02:25:52 UTC 2014


mtree -deU /etc/mtree/filehere

I believe that might roll through and set the proper perms and. schg flags. 

-- 
 Jason Hellenthal
 Voice: 95.30.17.6/616
 JJH48-ARIN

> On Jun 1, 2014, at 22:14, Alfred Perlstein <bright at mu.org> wrote:
> 
> 
>> On 6/1/14, 1:27 PM, Jordan Hubbard wrote:
>>> On Jun 1, 2014, at 12:52 PM, Alfred Perlstein <bright at mu.org> wrote:
>>> 
>>>> On 6/1/14, 12:45 PM, Jordan Hubbard wrote:
>>>>> On Jun 1, 2014, at 12:04 PM, Alfred Perlstein <bright at mu.org> wrote:
>>>>> 
>>>>> Unfortunately I'm doing it over NFS and I don't think we support chflags over NFS (not even with an extension).
>>>> Try the installworld with NO_FSCHG=yes
>>>> 
>>>> I think that catches at least 7 of the 8 places that need to be conditionalized. :)
>>>> 
>>>> - Jordan
>>> Thanks Jordan,
>>> 
>>> I did wind up using that, but NFS still was giving me:
>>> install -C -o root -g wheel -m 444   libcrypt.a /usr/soekris/usr/lib
>>> install -C -o root -g wheel -m 444   libcrypt_p.a /usr/soekris/usr/lib
>>> install -s -o root -g wheel -m 444   -fschg  libcrypt.so.5 /usr/soekris/lib
>>> install: /usr/soekris/lib/libcrypt.so.5: Input/output error
>> Well, like I said, I think the NO_FSCHG implementation is incomplete.  That’s weird though - bsd.lib.mk (in -current at least) does have a NO_FSCHG check.  Are you sure that’s set in your environment?  Did that change not make it into whatever branch you’re using, perhaps?
> OK you were right about me forgetting to set NO_FSCHG in that pass, however even when I set it:
> 
> /usr/src # NO_FSCHG=YES TARGET=i386 DESTDIR=/usr/soekris make installworld
> ....
> ===> lib/libcrypt (install)
> install -C -o root -g wheel -m 444   libcrypt.a /usr/soekris/usr/lib
> install -C -o root -g wheel -m 444   libcrypt_p.a /usr/soekris/usr/lib
> install -s -o root -g wheel -m 444     libcrypt.so.5 /usr/soekris/lib
> install: /usr/soekris/lib/libcrypt.so.5: Input/output error
> *** Error code 71
> 
> Stop.
> make[5]: stopped in /usr/trees/freebsd.git/lib/libcrypt
> 
> It appears it's that schg is set on it on the target host:
> 
> .(02:10:18)(alfred at soekris.local)
> /lib % ls -lo libcrypt*
> -r--r--r--  1 root  wheel  schg   81988 Aug 16  2013 libcrypt.so.5
> -r--r--r--  1 root  wheel  -    1468336 Aug 16  2013 libcrypto.so.6
> -r--r--r--  1 root  wheel  -    1626140 Jun  1 11:15 libcrypto.so.7
> 
> Ugh, that was frustrating... but now fixed sorta...
> 
> Is there a post-processing step i can do on the target install host to get my schg bits set on the right things?
> 
> -Alfred
> 
> 
> 
> 
> 
>> - Jordan
>> 
>> 
>> _______________________________________________
>> freebsd-hackers at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6118 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20140601/b8150cb2/attachment.bin>


More information about the freebsd-hackers mailing list