We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b60382 commit 2528206Copy full SHA for 2528206
lib.sh
@@ -77,8 +77,9 @@ mount_rootfs_all(){
77
umount_rootfs_all(){
78
[ -f "$ROOTFS_LOCK" ] || fail "rootfs is not mounted."
79
for d in /dev/pts /dev /proc /sys /tmp; do
80
- umount "$ROOTFS_DIR/$d"
+ umount "$ROOTFS_DIR/$d" 2>/dev/null
81
done
82
+ cp /etc/hostname /etc/hosts /etc/resolv.conf "$ROOTFS_DIR/etc"
83
umount "$ROOTFS_DIR" || fail "cannot unmount rootfs."
84
rm "$ROOTFS_LOCK" || fail
85
}
0 commit comments