diff options
-rwxr-xr-x | src/chroot-tools/librechroot | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 5d1db21..0b0ce0c 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -484,13 +484,13 @@ main() { arch-nspawn "$copydir" pacman -Syu --noconfirm </dev/null ;; clean-pkgs) - trap "rm -f -- ${copydir@Q}/{bin/chcleanup,chrootexec}" EXIT - install -m755 "$(librelib chroot/chcleanup)" "$copydir/bin/chcleanup" + trap "rm -f -- ${copydir@Q}/{chcleanup,chrootexec}" EXIT + install -m755 "$(librelib chroot/chcleanup)" "$copydir/chcleanup" printf '%s\n' \ '#!/bin/bash' \ 'mkdir -p /startdir' \ 'cd /startdir' \ - '/bin/chcleanup' \ + '/chcleanup' \ > "$copydir/chrootexec" chmod 755 "$copydir/chrootexec" arch-nspawn "$copydir" /chrootexec </dev/null |