diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/procedures/partial-configure-network.sh | 7 | ||||
-rw-r--r-- | src/core/procedures/partial-disks.sh | 30 |
2 files changed, 37 insertions, 0 deletions
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 |