Skip to content

Commit

Permalink
$HTTP_SERVER demands /proc to be mounted. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
frzb authored Sep 15, 2018
1 parent 983289c commit 7178688
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions debirf
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,6 @@ EOF
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
# Determine IP-address of HTTP-server that
# delivers the plugin archives.
# The server is the same as the one which provides the
# initramfs.
HTTP_SERVER=$(grep -oE http:.[^\ ]+ /proc/cmdline | cut -d'/' -f 3)
mkdir -p /dev /proc /sys /run
# Mount the /proc and /sys filesystems.
mount -t proc none /proc
Expand All @@ -264,6 +258,13 @@ export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
# Determine IP-address of HTTP-server that
# delivers the plugin archives.
# The server is the same as the one which provides the
# initramfs.
HTTP_SERVER=$(grep -oE http:.[^\ ]+ /proc/cmdline | cut -d'/' -f 3)
if (grep -q break=skip_loading_plugins /proc/cmdline); then
echo 'Loading of Coinboot plugins skipped'
else
Expand Down

0 comments on commit 7178688

Please sign in to comment.