summaryrefslogtreecommitdiff
path: root/tests/runtime/automatic-reuse-fs-sda/profile
blob: a6deda76da2e3175dcd885a517b3e601e8e7d9c9 (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
TARGET_PACKAGES='aif e2fsprogs'
RUNTIME_REPOSITORIES=(testing "Server = ftp://mir1.archlinuxfr.org/archlinux/testing/os/$var_ARCH")
GRUB_DEVICE=/dev/sda

# modify worker_prepare_disks: we don't want to repartition (process_disks). also we want to do a rollback + setup again

worker_prepare_disks ()
{
	echo "$var_BLOCKDATA" > $TMP_BLOCKDEVICES
	if process_filesystems
	then
		inform "disk processing ok"
	else
		show_warning 'disks processing' "PROCESSING FAILED"
		return 1
	fi
	if rollback_filesystems
	then
		inform "rollback ok"
	else
		show_warning 'disks rollback' "ROLLBACK FAILED"
		return 1
	fi
	if process_filesystems
	then
		inform "disk processing ok"
	else
		show_warning 'disk processing' "PROCESSING FAILED"
		return 1
	fi
}

PARTITIONS=this_wont_be_used
BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params
/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params
/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params
/dev/sda4 raw no_label ext3;no;/home;target;no_opts;no_label;no_params'