From b92a0c9480d044e22946d7a92bb21ea9dcd426f6 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 13 Dec 2008 16:12:16 +0100 Subject: output phases good this time --- src/core/libs/lib-blockdevices-filesystems.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/libs/lib-blockdevices-filesystems.sh') diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index 35828a0..87a2d2f 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -385,7 +385,7 @@ process_filesystems () # re-order list so that we umount in the correct order. eg first umount /a/b/c, then /a/b. we sort alphabetically, which has the side-effect of sorting by stringlength, hence by vfs dependencies. # TODO: this is not entirely correct: what if something is mounted in a previous run that is now not anymore in $TMP_BLOCKDEVICES ? that needs to be cleaned up too. - infofy "Phase 1: Umounting all needed mountpoints" + infofy "Phase 1: Umounting all needed mountpoints" disks sort -t \ -k 6 $TMP_FILESYSTEMS | tac | while read part part_type part_label fs_type fs_create fs_mountpoint fs_mount fs_opts fs_label fs_params do if [ "$fs_type" = swap ] @@ -436,7 +436,7 @@ process_filesystems () # Approach 2 : iterate over all targets in $TMP_BLOCKDEVICES as much as needed, until a certain limit, and in each loop check what can be cleared by looking at the real, live usage of / dependencies on the partition. # the advantage of approach 2 over 1 is that 1) it's easier. 2) it's better, because the live environment can be different then what's described in $TMP_BLOCKDEVICES anyway. - infofy "Phase 2: destructing blockdevices" + infofy "Phase 2: destructing blockdevices" disks for i in `seq 1 10` do open_items=0 @@ -516,7 +516,7 @@ process_filesystems () # phase 3: create all blockdevices and filesystems in the correct order (for each fs, the underlying block/lvm/devicemapper device must be available so dependencies must be resolved. for lvm:first pv's, then vg's, then lv's etc) # don't let them mount yet. we take care of all that ourselves in the next phase - infofy "Phase 3: Creating blockdevices" + infofy "Phase 3: Creating blockdevices" disks done_filesystems= for i in `seq 1 10` do @@ -561,7 +561,7 @@ process_filesystems () # phase 4: mount all filesystems in the vfs in the correct order. (also swapon where appropriate) - infofy "Phase 4: Mounting filesystems" + infofy "Phase 4: Mounting filesystems" disks sort -t \ -k 6 $TMP_FILESYSTEMS | while read part part_type part_label fs_type fs_create fs_mountpoint fs_mount fs_opts fs_label fs_params do if [ "$fs_mountpoint" != no_mountpoint ] -- cgit v1.2.3-54-g00ecf