From 801b3d4a7f925e7b9ad63f795f7a7bdc92fd75a7 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 14 Dec 2008 18:27:19 +0100 Subject: switch from dead-end 'try to be smart and clean environment first' approach to 'rollback in case of failures' system --- unofficial/modules/dieter/procedures/automatic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unofficial') diff --git a/unofficial/modules/dieter/procedures/automatic b/unofficial/modules/dieter/procedures/automatic index 3420232..3907fa2 100644 --- a/unofficial/modules/dieter/procedures/automatic +++ b/unofficial/modules/dieter/procedures/automatic @@ -79,7 +79,7 @@ worker_prepare_disks () cryptsetup luksClose sda2_crypt 2>/dev/null dd if=/dev/urandom of=/dev/sda bs=512 count=1 - #TODO: integrate this stuff into the functions in the libs + do error checking and handling + #TODO: integrate this stuff into the functions in the libs (process_partitions and filesystems, rollback and bailout if needed) + do error checking and handling #NOTE: i don't think i should quote to prevent globbing, but it does seem to help i think (hard to check as resource is busy and you can't reload kernel partition tables) sfdisk /dev/sda 2>&1 | grep -v 'not have an msdos signature' << EOF ,10,L,'*' -- cgit v1.2.3-54-g00ecf