Revert "arch-chroot: default to /bin/sh when no command given"
This doesn't actually work since we don't shift off the chroot
directory.
This reverts commit 67c4b0fd24
.
This commit is contained in:
parent
40fcfbf1a9
commit
71a4471d25
@ -26,6 +26,6 @@ trap '{ api_fs_umount "$chrootdir"; umount "$chrootdir/etc/resolv.conf"; } 2>/de
|
||||
api_fs_mount "$chrootdir" || die "failed to setup API filesystems in chroot %s" "$1"
|
||||
mount -B /etc/resolv.conf "$chrootdir/etc/resolv.conf"
|
||||
|
||||
chroot "${@:-/bin/sh}"
|
||||
chroot "$@"
|
||||
|
||||
umount "$chrootdir/etc/resolv.conf"
|
||||
|
Loading…
Reference in New Issue
Block a user