> This looks like a bug to me.  In /usr/lib/brand/shared/common.ksh,
> install_dir() is responsible for the "cd && find | cpio" that you see
> logged above.
>
> 722         list=$(cd "$source_dir" && ls -d * | egrep -v "$filt")
> 723         flist=$(for i in $list
> 724         do
> 725                 printf "%s " "$i"
> 726         done)
> 727         findopts="-xdev ( -type d -o -type f -o -type l ) -print"
> 728 
> 729         vlog "cd \"$source_dir\" && find $flist $findopts | "
> 730         vlog "cpio $cpioopts \"$ZONEROOT\""
> 731 
> 732         # Ignore errors from cpio since we expect some errors depending on
> 733         # how the archive was made.
> 734         ( cd "$source_dir" && find $flist $findopts | \
> 735             cpio $cpioopts "$ZONEROOT" )
> 736 
>
> The list ($list) generated on line 722 will not include dot files.  It
> should probably look like:
>
>             list=$(cd "$source_dir" && ls -A | egrep -v "$filt")
>
> Notice that "ls -d *" changed to "ls -A".  I've opened:
> 
> 7099779 zoneadm attach -d loses dot files in root directory

Thanks for the bug report, I've also validated your fix works.

-Alex


_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to