summaryrefslogtreecommitdiff
path: root/selfstrap
diff options
context:
space:
mode:
Diffstat (limited to 'selfstrap')
-rwxr-xr-xselfstrap2
1 files changed, 2 insertions, 0 deletions
diff --git a/selfstrap b/selfstrap
index 0535e42..a127d8f 100755
--- a/selfstrap
+++ b/selfstrap
@@ -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
163cleanup_chroot() 164cleanup_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