diff options
Diffstat (limited to 'debootstrap.sh')
-rwxr-xr-x | debootstrap.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debootstrap.sh b/debootstrap.sh index c0554ad..913bc66 100755 --- a/debootstrap.sh +++ b/debootstrap.sh | |||
@@ -156,12 +156,14 @@ sh_image() | |||
156 | return $r | 156 | return $r |
157 | } | 157 | } |
158 | 158 | ||
159 | default_chroot_command=/bin/bash | ||
160 | |||
159 | chroot_image() | 161 | chroot_image() |
160 | { | 162 | { |
161 | suite=$1 | 163 | suite=$1 |
162 | name=$2 | 164 | name=$2 |
163 | shift 2 | 165 | shift 2 |
164 | [ $# = 0 ] && set -- /bin/bash | 166 | [ $# -gt 0 ] || set -- $default_chroot_command |
165 | set -- \ | 167 | set -- \ |
166 | unshare -f -m -p \ | 168 | unshare -f -m -p \ |
167 | chroot . \ | 169 | chroot . \ |