#!/bin/sh

#set -e

# initramfs-tools header

PREREQ=""

prereqs()
{
	echo "${PREREQ}"
}

case "${1}" in
	prereqs)
		prereqs
		exit 0
		;;
esac

# live-initramfs header

. /scripts/live-functions

log_begin_msg "Moving mount points"

# live-initramfs script

# Move to the new root filesystem so that programs there can get at it.
if [ ! -d /root/live/image ]
then
	mkdir -p /root/live/image
	mount --move /live/image /root/live/image
fi

log_end_msg
