summaryrefslogtreecommitdiff
path: root/tests/runtime/automatic-reuse-fs-sda/profile
blob: b2f93d7756ccab96d41effc6698234c93a3378ac (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'
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
		infofy "disk processing ok"
        else
		show_warning 'disks processing' "PROCESSING FAILED"
		return 1
        fi
        if rollback_filesystems
        then
		infofy "rollback ok"
        else
		show_warning 'disks rollback' "ROLLBACK FAILED"
		return 1
        fi
        if process_filesystems
        then
		infofy "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'