diff options
-rwxr-xr-x | selfstrap | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -158,6 +158,7 @@ prepare_chroot() | |||
158 | [ -d "$TARGET"/sys ] || mkdir "$TARGET"/sys | 158 | [ -d "$TARGET"/sys ] || mkdir "$TARGET"/sys |
159 | mount -t proc proc "$TARGET"/proc | 159 | mount -t proc proc "$TARGET"/proc |
160 | mount -t sysfs sysfs "$TARGET"/sys | 160 | mount -t sysfs sysfs "$TARGET"/sys |
161 | mount --bind /dev "$TARGET"/dev | ||
161 | } | 162 | } |
162 | 163 | ||
163 | cleanup_chroot() | 164 | cleanup_chroot() |
@@ -165,6 +166,7 @@ cleanup_chroot() | |||
165 | [ "$TARGET" ] || die 'no $TARGET' | 166 | [ "$TARGET" ] || die 'no $TARGET' |
166 | umount "$TARGET"/proc || fail=y | 167 | umount "$TARGET"/proc || fail=y |
167 | umount "$TARGET"/sys || fail=y | 168 | umount "$TARGET"/sys || fail=y |
169 | umount "$TARGET"/dev || fail=y | ||
168 | [ ! "$fail" ] | 170 | [ ! "$fail" ] |
169 | } | 171 | } |
170 | 172 | ||