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:
parent
f4a7a8313a
commit
b0af617480
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user