From 78bbe06321a9724311449a38ea9134d227d95a98 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 20 Dec 2008 18:43:47 +0100 Subject: new concept: partial procedures, 2 implementations + documentation + added automatic procedure docs to README --- README | 8 +++++++ src/core/procedures/partial-configure-network.sh | 7 ++++++ src/core/procedures/partial-disks.sh | 30 ++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/core/procedures/partial-configure-network.sh create mode 100644 src/core/procedures/partial-disks.sh 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 -- cgit v1.2.3-54-g00ecf