summaryrefslogtreecommitdiff
path: root/tests/runtime/automatic-reuse-fs-sda/install.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-24 22:12:12 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-24 22:12:12 +0200
commit63ab0f7db5a26a9e760ba5e3b8a029cad10abcb2 (patch)
treee6d765b5fdbb6696ee91e40125937f47ce3732f4 /tests/runtime/automatic-reuse-fs-sda/install.sh
parentc0b16a498cae06666e61d6913fe3c402b77a3242 (diff)
add automatic-reuse-fs-sda test, which tests the "user has an existing partition he wants to reuse" scenario, with even a rollback and re-do it thrown in
Diffstat (limited to 'tests/runtime/automatic-reuse-fs-sda/install.sh')
-rw-r--r--tests/runtime/automatic-reuse-fs-sda/install.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/runtime/automatic-reuse-fs-sda/install.sh b/tests/runtime/automatic-reuse-fs-sda/install.sh
new file mode 100644
index 0000000..4b6b6f5
--- /dev/null
+++ b/tests/runtime/automatic-reuse-fs-sda/install.sh
@@ -0,0 +1,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 \ No newline at end of file