summaryrefslogtreecommitdiff
path: root/tests/runtime/automatic-reuse-fs-sda/install.sh
blob: 4b6b6f59f5a095878c4dfe50dff9e83c394670af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# sda1 boot, sda2 will be swap, sda3 /, sda4 which will contain the "existing filesystem of the user" with "important data" on it.
sfdisk /dev/sda << EOF
,50,,*
,20,S
,800,
,,
EOF
mke2fs -j /dev/sda4
mkdir /tmp/aif-test-mount
mount /dev/sda4 /tmp/aif-test-mount
touch /tmp/aif-test-mount/important-userdata
umount /tmp/aif-test-mount
aif -p automatic -c /usr/share/aif/tests/runtime/automatic-reuse-fs-sda/profile -d