summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/05mountpoints
blob: 36c29724fe8ea094e1ba78da25836f497a4ad680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

PREREQ=""
DESCRIPTION="Moving mount points..."

. /scripts/live-functions

prereqs()
{
       echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
       prereqs
       exit 0
       ;;
esac

log_begin_msg "$DESCRIPTION"

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

log_end_msg