gen_initramfs: provide /bin/dmesg as well

master
Fabio Erculiani 12 years ago
parent 51a54c3388
commit 2af62f0189

@ -19,8 +19,7 @@ find_nfs() {
if [ -z "${NFSROOT}" ]; then
# Obtain NFSIP
# TODO: this is bogus, because dmesg is a circular buffer...
# TODO: provide dmesg as symlink (see gen_initramfs.sh)
options=$(busybox dmesg | grep rootserver | sed -e "s/,/ /g")
options=$(dmesg | grep rootserver | sed -e "s/,/ /g")
local opt= optn=
@ -33,8 +32,7 @@ find_nfs() {
# Obtain NFSPATH
# TODO: this is bogus, because dmesg is a circular buffer...
# TODO: provide dmesg as symlink (see gen_initramfs.sh)
options=$(busybox dmesg | grep rootpath | sed -e "s/,/ /g")
options=$(dmesg | grep rootpath | sed -e "s/,/ /g")
for opt in ${options}; do
optn=$(echo $opt | sed -e "s/=/ /g" | cut -d " " -f 1)

@ -131,7 +131,7 @@ append_busybox() {
# Set up a few default symlinks
local default_applets="[ ash sh mount uname ls echo cut cat flock stty"
default_applets+=" readlink mountpoint"
default_applets+=" readlink mountpoint dmesg"
for i in ${BUSYBOX_APPLETS:-${default_applets}}; do
rm -f ${TEMP}/initramfs-busybox-temp/bin/$i
ln -s busybox ${TEMP}/initramfs-busybox-temp/bin/$i ||

Loading…
Cancel
Save