diff options
-rw-r--r-- | README | 8 | ||||
-rw-r--r-- | src/core/procedures/partial-configure-network.sh | 7 | ||||
-rw-r--r-- | src/core/procedures/partial-disks.sh | 30 |
3 files changed, 45 insertions, 0 deletions
@@ -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 |