with SUDO set in /etc/mk.conf: if make release is run as root it will not proceed. if run as a regular user it gets further, but fails on permissions.
without SUDO in /etc/mk.conf (and i presume the environment) it works fine. is there any way around this allowing /etc/mk.conf (which is useful for ports)? i can always move it temporarily, add it to my automated scripts, but is there a better way? $ cat /etc/mk.conf SUDO=/usr/bin/sudo $ sudo env DESTDIR=/usr/dst RELEASEDIR=/usr/release make release exec /usr/bin/sudo make distribution-etc-root-var setenv DESTDIR before doing that! *** Error 1 in /usr/src/etc (Makefile:77 'distribution-etc-root-var': @false) *** Error 1 in /usr/src/etc (Makefile:228 'distribution') $ env DESTDIR=/usr/dst RELEASEDIR=/usr/release make release exec /usr/bin/sudo make distribution-etc-root-var if [ ! -d /usr/dst/. ]; then install -d -o root -g wheel -m 755 /usr/dst; fi mtree -qdef mtree/4.4BSD.dist -p /usr/dst/ -U if [ ! -d /usr/dst/usr/src ]; then install -d -o root -g wsrc -m 775 /usr/dst/usr/src; fi cd /usr/dst/; ln -fhs usr/src/sys sys install -c -o root -g wheel -m 644 changelist csh.cshrc csh.login csh.logout daily etc.i386/disktab etc.i386/login.conf ftpusers gettytab group ksh.kshrc locate.rc mailer.conf man.conf moduli monthly netstart networks newsyslog.conf pf.os protocols rc rc.conf rpc services shells syslog.conf weekly /usr/dst/etc sh ttys.pty | cat etc.i386/ttys - > /usr/dst/etc/ttys && chown root /usr/dst/etc/ttys && chgrp wheel /usr/dst/etc/ttys && chmod 644 /usr/dst/etc/ttys cat examples/sysctl.conf etc.i386/sysctl.conf > /usr/dst/etc/examples/sysctl.conf && chown root /usr/dst/etc/examples/sysctl.conf && chgrp wheel /usr/dst/etc/examples/sysctl.conf && chmod 644 /usr/dst/etc/examples/sysctl.conf cat fbtab.head etc.i386/fbtab fbtab.tail > /usr/dst/etc/fbtab && chown root /usr/dst/etc/fbtab && chgrp wheel /usr/dst/etc/fbtab && chmod 644 /usr/dst/etc/fbtab install -c -o root -g operator -m 664 motd /usr/dst/etc install -c -o root -g crontab -m 600 crontab /usr/dst/var/cron/tabs/root ... ===> sys/arch/zaurus/stand/zboot install -c -o root -g bin -m 444 /usr/src/sys/arch/zaurus/stand/zboot/boot.8 /usr/dst/usr/share/man/man8/zaurus/boot.8 /usr/dst/usr/share/man/man5/zaurus/boot.conf.5 -> /usr/dst/usr/share/man/man8/zaurus/boot.8 cd /usr/src/share/man && exec make makedb /usr/sbin/makewhatis -Qv /usr/dst/usr/share/man cd /usr/src/distrib/sets && exec make makedb /bin/sh /usr/src/distrib/sets/makelocatedb 56 >/usr/dst/usr/lib/locate/src.db cp /usr/dst/usr/mdec/pxeboot /usr/release cp: /usr/release/pxeboot: Permission denied *** Error 1 in /usr/src/etc (etc.i386/Makefile.inc:6 'bootblocks')