summaryrefslogtreecommitdiffstats
path: root/system-boot/backend/initramfs-tools/live.script
blob: 5bec7417b35ef5a557e9317bb7bcde8ae1bb6fef (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Live system filesystem mounting			-*- shell-script -*-

. /bin/live-boot

live_top()
{
	if [ "${live_top_used}" != "yes" ]; then
		[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-top"
		run_scripts /scripts/live-top
		[ "$quiet" != "y" ] && log_end_msg
	fi
	live_top_used=yes
}

live_premount()
{
	if [ "${live_premount_used}" != "yes" ]; then
		[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-premount"
		run_scripts /scripts/live-premount
		[ "$quiet" != "y" ] && log_end_msg
	fi
	live_premount_used=yes
}

live_bottom()
{
	if [ "${live_premount_used}" = "yes" ] || [ "${live_top_used}" = "yes" ]; then
		[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-bottom"
		run_scripts /scripts/live-bottom
		[ "$quiet" != "y" ] && log_end_msg
	fi
	live_premount_used=no
	live_top_used=no
}


mountroot()
{
	# initramfs-tools entry point for live-boot is mountroot(); function
	Live
}

mount_top()
{
	# Note, also called directly in case it's overridden.
	live_top
}

mount_premount()
{
	# Note, also called directly in case it's overridden.
	live_premount
}

mount_bottom()
{
	# Note, also called directly in case it's overridden.
	live_bottom
}