X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-debootstrap;h=66e4398e767a3832a30694ce70ea15f62eabfe99;hb=8c6b63a991f3c158f050f7dea4e3c842804cf5cc;hp=a08262acb4b5fd9cd8a69d556a06111f27f86f3d;hpb=aad526af3708cc6796d906eb877253435aa0c29c;p=grml-debootstrap.git diff --git a/grml-debootstrap b/grml-debootstrap index a08262a..66e4398 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -425,6 +425,19 @@ fi } # }}} +# user should recheck his configuration {{{ +# support full automatic installation: +checkforrun() { + dialog --timeout 10 --title "$PN" \ + --yesno "Do you want to stop at this stage? + +Notice: you are running ${PN} in non-interactive mode. +${PN} will install Debian ${RELEASE} on ${TARGET}. +Last chance to quit. Timeout of 10 seconds running.... + +Do you want to stop now?" 0 0 2>/dev/null +} + # make sure the user is aware of the used configuration {{{ checkconfiguration() { @@ -510,8 +523,6 @@ interactive_mode() fi prompt_for_mirror - - checkconfiguration } # run interactive mode if we didn't get the according configuration yet @@ -522,6 +533,8 @@ if [ -z "$TARGET" -o -n "$INTERACTIVE" ] ; then fi # }}} +checkconfiguration + # finally make sure at least $TARGET is set [the partition for the new system] {{{ if [ -n "$TARGET" ] ; then SHORT_TARGET="${TARGET##*/}" @@ -643,19 +656,6 @@ stage() { } # }}} -# user should recheck his configuration {{{ -# support full automatic installation: -checkforrun() { - dialog --timeout 10 --title "$PN" \ - --yesno "Do you want to stop at this stage? - -Notice: you are running ${PN} in non-interactive mode. -${PN} will install Debian ${RELEASE} on ${TARGET}. -Last chance to quit. Timeout of 10 seconds running.... - -Do you want to stop now?" 0 0 2>/dev/null -} - # create filesystem {{{ mkfs() { if [ -n "$MKFS" ] ; then