>>>>> On Sun, 24 Mar 2013, Michał Górny wrote:
>> >> > +multibuild_merge_root() {
>> >> > + [...]
>> >> > + if type -P lockf &>/dev/null; then
>> >> > + # On BSD, we have 'lockf' wrapper.
>> >> > + tar -C "${src}" -f - -c . \
>> >> > + | lockf "${lockfile}" tar -x -f - -C "${dest}"
>> >> > + else
>> >> > + [...]
>> >> > + cp -a -l -n "${src}"/. "${dest}"/
>> Maybe explicitly testing for USERLAND would be less fragile? Or use
>> tar everywhere?
> I prefer something that can boom into face and let us know that it
> is broken rather than silent, poor catch-all.
How about adding a couple of "assert" and "die" to tar and cp then?
Ulrich