summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-20 18:43:47 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-20 18:43:47 +0100
commit78bbe06321a9724311449a38ea9134d227d95a98 (patch)
tree84d7887f42334c1454539549cc0ac122094ec9d8
parentfcbe47dfba9a64f98f6596d23f4f2efb78480101 (diff)
new concept: partial procedures, 2 implementations + documentation + added automatic procedure docs to README
-rw-r--r--README8
-rw-r--r--src/core/procedures/partial-configure-network.sh7
-rw-r--r--src/core/procedures/partial-disks.sh30
3 files changed, 45 insertions, 0 deletions
diff --git a/README b/README
index ca55604..77d1b28 100644
--- a/README
+++ b/README
@@ -99,6 +99,14 @@ core/base: basic, little-interactivity installation with some common defa
want to run this one, although it's useful for other procedures to inherit from.
core/interactive: interactive, reasonably flexible/featured installer (port of /arch/setup)
core/quickinst: mostly DIY. port of /arch/quickinst
+core/automatic: automatic installer/deployment tool, can use config files
+
+** Partial Procedures **
+These procedures allow you to run a select few functions, in order to reach
+a specific goal, usually not installing a system
+
+partial-configure-network.sh Configure network on the runtime system
+partial-disks.sh Process disk subsystem or do a rollback
** Contributing **
diff --git a/src/core/procedures/partial-configure-network.sh b/src/core/procedures/partial-configure-network.sh
new file mode 100644
index 0000000..a2542b6
--- /dev/null
+++ b/src/core/procedures/partial-configure-network.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+depend_procedure core interactive
+
+start_process ()
+{
+ execute worker runtime_network
+} \ No newline at end of file
diff --git a/src/core/procedures/partial-disks.sh b/src/core/procedures/partial-disks.sh
new file mode 100644
index 0000000..c5fa5f7
--- /dev/null
+++ b/src/core/procedures/partial-disks.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+depend_procedure core base
+
+var_OPTS_STRING="o:"
+var_ARGS_USAGE="-o process/rollback: Operation: process the blockdevice layer or roll it back?"
+
+process_args ()
+{
+ if [ "$1" = '-o' ]
+ then
+ [ "$2" != process -a "$2" != rollback ] && die_error "You must specify 'process' or 'rollback'"
+ OPERATION=$2
+ else
+ usage
+ exit 5
+ fi
+}
+
+
+start_process ()
+{
+ if [ "$OPERATION" = process ]
+ then
+ process_disks
+ process_filesystems
+ elif [ "$OPERATION" = rollback ]
+ then
+ rollback_filesystems
+ else
+} \ No newline at end of file