Skip to content

Commit 2528206

Browse files
committed
.
1 parent 5b60382 commit 2528206

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ mount_rootfs_all(){
7777
umount_rootfs_all(){
7878
[ -f "$ROOTFS_LOCK" ] || fail "rootfs is not mounted."
7979
for d in /dev/pts /dev /proc /sys /tmp; do
80-
umount "$ROOTFS_DIR/$d"
80+
umount "$ROOTFS_DIR/$d" 2>/dev/null
8181
done
82+
cp /etc/hostname /etc/hosts /etc/resolv.conf "$ROOTFS_DIR/etc"
8283
umount "$ROOTFS_DIR" || fail "cannot unmount rootfs."
8384
rm "$ROOTFS_LOCK" || fail
8485
}

0 commit comments

Comments
 (0)