Skip to content

Commit

Permalink
Do not fail if other than PLANG is passed to init
Browse files Browse the repository at this point in the history
  • Loading branch information
mavrothal committed Jan 31, 2016
1 parent cb06286 commit a98df17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions woof-code/huge_extras/init
Expand Up @@ -186,6 +186,14 @@ else #2nd entry, running /init2
PLANG=${1}
fi

#Some bootloaders can pass arguments to init!
if [ "$(ls /proc)" = "" ]; then
mount -t proc none /proc
mount -t sysfs none /sys
mount -t rootfs -o remount,rw rootfs /
ln -s /proc/mounts /etc/mtab
fi

export LANG=C #w004
. /DISTRO_SPECS #v412 has DISTRO_VERSION, DISTRO_FILE_PREFIX
[ ! "$DISTRO_DB_SUBNAME" ] && DISTRO_DB_SUBNAME="$DISTRO_COMPAT_VERSION" #121102 fallback if DISTRO_DB_SUBNAME not defined in file DISTRO_SPECS.
Expand Down

0 comments on commit a98df17

Please sign in to comment.