diff options
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-x | src/chroot-tools/librechroot | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 26176e0..990f91c 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -113,14 +113,12 @@ main() { case "$mode" in clean_repo) - msg "Cleaning local pacman repository" rm -rf "${copydir}/repo" mkdir "${copydir}/repo" bsdtar -czf "${copydir}/repo/repo.db.tar.gz" -T /dev/null ln -s "repo.db.tar.gz" "${copydir}/repo/repo.db" ;; clean_pacman) - msg "Intelligently cleaning packages" cp -a "$(which chcleanup)" "${copydir}/clean" echo '#!/bin/bash' > "${copydir}/cleanstrap" echo 'mkdir /build' >> "${copydir}/cleanstrap" @@ -129,27 +127,22 @@ main() { archroot "${archroot_args[@]}" "${copydir}" -r /cleanstrap ;; install_file) - msg "Installing package file: $ARG" cp "$ARG" "$copydir/${ARG##*/}" archroot "${archroot_args[@]}" "$copydir" -r "pacman -U /${ARG##*/} --noconfirm" rm "$copydir/${ARG##*/}" ;; install_pkg) - msg "Installing package(s): $ARG" archroot "${archroot_args[@]}" "$copydir" -i $ARG ;; noop) :;; run) - msg "Running command" archroot "${archroot_args[@]}" "${copydir}" -r "$ARG" ;; sync) sync;; update) - msg "Updating chroot" archroot "${archroot_args[@]}" "${copydir}" -u ;; enter) - msg "Entering chroot" archroot "${archroot_args[@]}" "${copydir}" -r bash ;; esac |