summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-10-01 02:33:30 +0200
committermaximilian attems <maks@debian.org>2005-10-01 02:33:30 +0200
commita893fa82665ee472079292eb84a125ef81009124 (patch)
tree540886f92c987fa65c7e74a9b4e98459ea554efc /init
parent14739b596ae27800ae6ce071745cf2da382d73b4 (diff)
downloadinitramfs-tools-a893fa82665ee472079292eb84a125ef81009124.tar.gz
initramfs-tools-a893fa82665ee472079292eb84a125ef81009124.zip
apply all the 0.30 upstream changes.
Diffstat (limited to 'init')
-rw-r--r--init11
1 files changed, 9 insertions, 2 deletions
diff --git a/init b/init
index 6bf4be7..4193dcd 100644
--- a/init
+++ b/init
@@ -1,5 +1,7 @@
#!/bin/sh
+echo "Loading, please wait..."
+
mkdir /sys
mkdir /proc
mkdir /tmp
@@ -22,6 +24,7 @@ export readonly=y
export ROOT=
export resume=${RESUME}
export rootmnt=/root
+export debug=
for x in $(cat /proc/cmdline); do
case $x in
init=*)
@@ -48,15 +51,19 @@ for x in $(cat /proc/cmdline); do
rw)
readonly=n
;;
+ debug)
+ debug=y
+ exec >/tmp/initramfs.debug 2>&1
+ set -x
+ ;;
break)
break=yes
;;
esac
done
-log_begin_msg "Running /scripts/init-top"
+# Don't do log messages here to avoid confusing usplash
run_scripts /scripts/init-top
-log_end_msg
. /scripts/${BOOT}