blob: 9fc1a5b2c6e88194577d0d1c336007171ce0d193 (
plain)
- #!/bin/sh
- . ./config-DEFAULTS || exit 1
- . ./config-HOST || exit 1
- . ./config-TARGET || exit 1
- . ./config-MANDATED || exit 1
- if [ "$1" = "temp" ]; then
- target="$targettemp"
- else
- target="$mountpoint"
- fi
- if [ "$FLASHYBRID" = "yes" ]; then
- if [ -d "$targetoffline" ]; then
- for dir in $flashybrid_diskstore; do
- umount $target$dir || true
- done
- else
- echo "WARNING: offline target $targetoffline does not exist." >&2
- fi
- fi
- [ -n "$pubdev_host" ] && umount "$target/pub" || true
- #umount proc-flashybrid || true
- if [ -d /sys ]; then
- umount "$target/sys" || true
- fi
- #if [ -d /dev/.udevdb ] || [ -f /dev/.devfsd ]; then
- # umount "$target/dev" || true
- #fi
- if [ ! "$1" = "temp" ]; then
- # [ -n "$bootdev_host" ] && umount "$target/boot" || true
- [ -n "$rootdev_host" ] && umount "$target" || true
- fi
|