[archiso] Use --sysroot when list installed packages.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
This commit is contained in:
Gerardo Exequiel Pozzi 2018-06-24 12:48:52 -03:00
parent 02164ac244
commit 5a57d83964

View File

@ -266,7 +266,7 @@ command_pkglist () {
_show_config pkglist
_msg_info "Creating a list of installed packages on live-enviroment..."
pacman -Sl -r "${work_dir}/airootfs" --config "${pacman_conf}" | \
pacman -Sl --sysroot "${work_dir}/airootfs" --config "${pacman_conf}" | \
awk '/\[installed\]$/ {print $1 "/" $2 "-" $3}' > \
"${work_dir}/iso/${install_dir}/pkglist.${arch}.txt"
_msg_info "Done!"