pacstrap: Fix creation of default directories

$newroot might be a relative path, so remove the leading slash.

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Pierre Schmitz 2012-06-22 15:33:11 +02:00
parent f4a7a8313a
commit b0af617480

View File

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