summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-03-31 21:51:15 -0600
committerAaron Ball <nullspoon@oper.io>2019-03-31 21:51:15 -0600
commit80b483858121166e76c94a60f62126215a757c52 (patch)
treeb0dfe275d29614f291b20661520ac4bc46e8f4b8
parentcc24c8688f4aedd66e91ebf1b057429766fd5ef0 (diff)
downloadmkinitramfs-80b483858121166e76c94a60f62126215a757c52.tar.gz
mkinitramfs-80b483858121166e76c94a60f62126215a757c52.tar.xz
init:move screen_init further down
The screen_init function was dependent on the value of the QUIET variable, which previously was set after this function was called. Moving this down allows for the QUIET variable to be set before it is needed. Also removed the 'Parsing command line options' log message.
-rwxr-xr-xinit8
1 files changed, 3 insertions, 5 deletions
diff --git a/init b/init
index 98a771e..0c50ec4 100755
--- a/init
+++ b/init
@@ -160,9 +160,6 @@ wait_dev() {
# rest.
#
main() {
- # display fanciful boot image
- screen_init
-
# Mount the /proc and /sys filesystems.
mount -t tmpfs none /run
mount -t devtmpfs none /dev
@@ -176,10 +173,11 @@ main() {
mkdir ${fakeroot}
fi
- log INFO "Parsing cmdline arguments"
-
parse_cmdline "$(cat /proc/cmdline)"
+ # display fanciful boot image
+ screen_init
+
log INFO "Root device: ${ROOTDEV}"
log INFO "Waiting up to 10 seconds for root device to appear."

Generated by cgit