From 8951ccb1a537e8a14df0c3f31b2abff71e657c4b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 18 May 2018 19:58:45 +0200 Subject: [PATCH] rc: allow to launch a shell in importer... So that users can use the installer here too manually. --- src/etc/rc.importer | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.importer b/src/etc/rc.importer index c15d4cc39..97c74d415 100755 --- a/src/etc/rc.importer +++ b/src/etc/rc.importer @@ -54,7 +54,6 @@ bootstrap_and_exit() exit 0 } - trap bootstrap_and_exit 2 DO_BOOT= @@ -143,7 +142,13 @@ while [ -z "${PART}" ]; do if [ -z "${DEV}" ]; then bootstrap_and_exit - fi + fi + + if [ "${DEV}" = "!" ]; then + # secret escape! (not so secret now, is it?) + /bin/sh + exit 0 + fi if ! probe_for_part ${DEV}; then echo "No known partition layout was found for '${DEV}'."