#!/bin/sh set -e . ./common-settings || exit 1 if [ "$1" = "temp" ]; then target="$targettemp" else target="$mountpoint" [ -n "$rootdev_host" ] && mount "$rootdev_host" "$target" # [ -n "$bootdev_host" ] && mount "$bootdev_host" "$target/boot" fi #mount proc-flashybrid "$target/proc" -t proc #mount pts-flashybrid "$target/dev/pts" -t pts #mount shm-flashybrid "$target/dev/shm" -t shm #mount usbfs-flashybrid "$target/proc/bus/usb" -t usbfs #if [ -d /dev/.udevdb ] || [ -f /dev/.devfsd ]; then # mount --bind /dev "$target/dev" #fi if [ -d /sys ]; then mount --bind /sys "$target/sys" fi [ -n "$pubdev_host" ] && mount -t "$pubfs" "$pubdev_host" "$target/pub" if [ "$FLASHYBRID" = "yes" ]; then if [ -d "$targetoffline" ]; then for dir in $flashybrid_diskstore; do if [ -d "$targetoffline$dir" ] && [ -d "$target$dir" ]; then mount --bind "$targetoffline$dir" "$target$dir" else echo "WARNING: diskstore dir \"$dir\" missing - ignoring." >&2 fi done else echo "WARNING: offline target $targetoffline does not exist." >&2 fi fi