pacstrap: ignore ENOENT on already existing API dirs

This commit is contained in:
Dave Reisner 2012-09-24 09:49:30 -04:00
parent 7420e07285
commit dc2c7623e4

View File

@ -88,8 +88,8 @@ fi
# create obligatory directories
msg 'Creating install root at %s' "$newroot"
mkdir -m 0755 -p "$newroot"/var/{cache/pacman/pkg,lib/pacman,log} "$newroot"/{dev,run,etc}
mkdir -m 1777 "$newroot"/tmp
mkdir -m 0555 "$newroot"/{sys,proc}
mkdir -m 1777 -p "$newroot"/tmp
mkdir -m 0555 -p "$newroot"/{sys,proc}
# always call umount on quit after this point
trap 'api_fs_umount "$newroot" 2>/dev/null' EXIT