diff --git a/defaults/initrd.d/00-common.sh b/defaults/initrd.d/00-common.sh index 3211985..8302e76 100755 --- a/defaults/initrd.d/00-common.sh +++ b/defaults/initrd.d/00-common.sh @@ -51,6 +51,18 @@ test_success() { fi } +sdelay() { + if [ -n "${SDELAY}" ]; then + good_msg "Waiting ${SDELAY} seconds..." + sleep ${SDELAY} + + elif is_livecd; then + local msg="Hint: Use scandelay[=seconds] if" + msg="${msg} your live medium is slowand boot fails" + good_msg "${msg}" + fi +} + run_shell() { /bin/ash } diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 64e06af..52649ec 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -584,18 +584,6 @@ start_luks() { fi } -sdelay() { - # Sleep a specific number of seconds if SDELAY is set - if [ -n "${SDELAY}" ] - then - good_msg "Waiting ${SDELAY} seconds..." - sleep ${SDELAY} - elif is_livecd - then - good_msg 'Hint: Use scandelay[=seconds] if your live medium is slowand boot fails' - fi -} - setup_md_device() { local device