From a64a83b56ce41538b6c1f49e359d82cd0b653d0d Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 14 Dec 2008 19:11:24 +0100 Subject: rollback update string fixes in interactive procedure --- src/core/procedures/interactive | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/procedures/interactive') diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index 0e4a426..d70d9ad 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -136,10 +136,12 @@ worker_prepare_disks() ret=1 # 1 means unsuccessful. 0 for ok NEXTITEM= DISK_CONFIG_TYPE= - rollbackstr=" (you don't need to do this)" - ended_ok worker prepare_disks && rollbackstr=" (looks like you need to do this)" && show_warning "Rollback may be needed" "It seems you already went here. You should probably rollback previous changes before reformatting, otherwise stuff will probably fail" + [ "$BLOCK_ROLLBACK_USELESS" = "0" ] && show_warning "Rollback may be needed" "It seems you already went here. You should probably rollback previous changes before reformatting, otherwise stuff will probably fail" while [ "$DONE" = "0" ] do + rollbackstr=" (you don't need to do this)" + [ "$BLOCK_ROLLBACK_USELESS" = "0" ] && rollbackstr=" (this will revert your last changes)" + default=no [ -n "$NEXTITEM" ] && default="$NEXTITEM" -- cgit v1.2.3-54-g00ecf